]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(fillbuf): Move declaration of local, cc, into scope of
authorJim Meyering <jim@meyering.net>
Fri, 3 Mar 2000 08:24:16 +0000 (08:24 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 3 Mar 2000 08:24:16 +0000 (08:24 +0000)
`while' loop where it's used.

src/sort.c

index e96f0db195ab7aa1f98ceeaa1c210c45e4798d46..2b064db57bc9dac7f8559774b5bcb8d9c391b97b 100644 (file)
@@ -545,8 +545,6 @@ initbuf (struct buffer *buf, int alloc)
 static int
 fillbuf (struct buffer *buf, FILE *fp)
 {
-  int cc;
-
   if (buf->used != buf->left)
     {
       memmove (buf->buf, buf->buf + buf->used - buf->left, buf->left);
@@ -555,6 +553,7 @@ fillbuf (struct buffer *buf, FILE *fp)
 
   while (!feof (fp))
     {
+      int cc;
       if (buf->used == buf->alloc)
        {
          buf->alloc *= 2;