summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FSListCats.c5
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;