From 08c690977a76a2a899bfe42056e9ae3a7efebcb3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 21 Feb 2011 15:15:17 -0800 Subject: [PATCH] * test-distrib.c (buf): Make this local, to avoid shadowing. --- lib-src/ChangeLog | 1 + lib-src/test-distrib.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e0a175e8167..c598164c575 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -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. 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) {