* test-distrib.c (buf): Make this local, to avoid shadowing.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Feb 2011 23:15:17 +0000 (15:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Feb 2011 23:15:17 +0000 (15:15 -0800)
lib-src/ChangeLog
lib-src/test-distrib.c

index e0a175e..c598164 100644 (file)
@@ -4,6 +4,7 @@
        But if the file already has the right ownership, don't worry about it.
 
        * make-docfile.c (input_buffer): Rename variables to avoid shadowing.
+       * test-distrib.c (buf): Make this local, to avoid shadowing.
 
        * movemail.c (main, pop_retr): Rename locals to avoid shadowing.
        (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
index c27f0e3..5ad1920 100644 (file)
@@ -34,8 +34,6 @@ static char string2[] = ".\n\
 This file is read by the `test-distribution' program.\n\
 If you change it, you will make that program fail.\n";
 
-static char buf[300];
-
 /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof.  */
 static int
 cool_read (int fd, char *buf, size_t size)
@@ -57,6 +55,7 @@ int
 main (int argc, char **argv)
 {
   int fd;
+  char buf[300];
 
   if (argc != 2)
     {