From: Paul Eggert Date: Mon, 21 Feb 2011 23:15:17 +0000 (-0800) Subject: * test-distrib.c (buf): Make this local, to avoid shadowing. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~776 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=08c690977a76a2a899bfe42056e9ae3a7efebcb3;p=emacs.git * test-distrib.c (buf): Make this local, to avoid shadowing. --- 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) {