summaryrefslogtreecommitdiff
path: root/lib-src/test-distrib.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-21 15:15:17 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-21 15:15:17 -0800
commit08c690977a76a2a899bfe42056e9ae3a7efebcb3 (patch)
treebb5f4991a1723c585039a75d685910b6b76b2960 /lib-src/test-distrib.c
parentf0939c31a6f4f7afec3adf3f31817f998af6e667 (diff)
downloademacs-08c690977a76a2a899bfe42056e9ae3a7efebcb3.tar.gz
* test-distrib.c (buf): Make this local, to avoid shadowing.
Diffstat (limited to 'lib-src/test-distrib.c')
-rw-r--r--lib-src/test-distrib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index c27f0e35b07..5ad19201118 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -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)
{