diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-23 13:40:30 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-23 13:40:30 -0700 |
commit | caee4c2bf188484f117e5bd866e3b56c8506593e (patch) | |
tree | 6f17151ca7c364c7978ff65e150a33522b09b6ba | |
parent | b37bbeb7ca931b0f5170e877b0bbfd0959d344b7 (diff) |
Fix sign comparison warning in loop index in FSListCatalogues
FSListCats.c: In function ‘FSListCatalogues’:
FSListCats.c:104:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < rep.num_catalogues; i++) {
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/FSListCats.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FSListCats.c b/src/FSListCats.c index e4aa5ed..bc3dd62 100644 --- a/src/FSListCats.c +++ b/src/FSListCats.c @@ -62,8 +62,7 @@ FSListCatalogues( int *actualCount) { long nbytes; - int i, - length; + int length; char **clist; char *c; fsListCataloguesReply rep; @@ -101,7 +100,7 @@ FSListCatalogues( _FSReadPad(svr, c, (long) rlen); /* unpack */ length = *c; - for (i = 0; i < rep.num_catalogues; i++) { + for (CARD32 i = 0; i < rep.num_catalogues; i++) { clist[i] = c + 1; c += length + 1; length = *c; |