X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Freadtokens.c;h=8ae1e070a2154fff4f67548fc35f990448f3a893;hb=8b8ff236fe4bd09b2cdbd5d26909a008d342a695;hp=8830ed771308b78059f8f0484ac4bff82cb925b1;hpb=92f1833affa37844e22d2ebe4ca4c6ba924377f4;p=gnulib.git diff --git a/lib/readtokens.c b/lib/readtokens.c index 8830ed771..8ae1e070a 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -50,8 +50,7 @@ #include "readtokens.h" #include "unlocked-io.h" -void *xmalloc (); -void *xrealloc (); +#include "xalloc.h" #define STREQ(a,b) ((a) == (b) || ((a) && (b) && *(a) == *(b) \ && strcmp(a, b) == 0)) @@ -109,9 +108,10 @@ readtoken (FILE *stream, if (!same_delimiters) { const char *t; + unsigned int j; saved_delim = delim; - for (i = 0; i < sizeof (isdelim); i++) - isdelim[i] = 0; + for (j = 0; j < sizeof (isdelim); j++) + isdelim[j] = 0; for (t = delim; *t; t++) isdelim[(unsigned int) *t] = 1; }