aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2011-02-21 15:15:17 -0800
committerPaul Eggert2011-02-21 15:15:17 -0800
commit08c690977a76a2a899bfe42056e9ae3a7efebcb3 (patch)
treebb5f4991a1723c585039a75d685910b6b76b2960 /lib-src
parentf0939c31a6f4f7afec3adf3f31817f998af6e667 (diff)
downloademacs-08c690977a76a2a899bfe42056e9ae3a7efebcb3.tar.gz
emacs-08c690977a76a2a899bfe42056e9ae3a7efebcb3.zip
* test-distrib.c (buf): Make this local, to avoid shadowing.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog1
-rw-r--r--lib-src/test-distrib.c3
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 @@
4 But if the file already has the right ownership, don't worry about it. 4 But if the file already has the right ownership, don't worry about it.
5 5
6 * make-docfile.c (input_buffer): Rename variables to avoid shadowing. 6 * make-docfile.c (input_buffer): Rename variables to avoid shadowing.
7 * test-distrib.c (buf): Make this local, to avoid shadowing.
7 8
8 * movemail.c (main, pop_retr): Rename locals to avoid shadowing. 9 * movemail.c (main, pop_retr): Rename locals to avoid shadowing.
9 (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars. 10 (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\
34This file is read by the `test-distribution' program.\n\ 34This file is read by the `test-distribution' program.\n\
35If you change it, you will make that program fail.\n"; 35If you change it, you will make that program fail.\n";
36 36
37static char buf[300];
38
39/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ 37/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */
40static int 38static int
41cool_read (int fd, char *buf, size_t size) 39cool_read (int fd, char *buf, size_t size)
@@ -57,6 +55,7 @@ int
57main (int argc, char **argv) 55main (int argc, char **argv)
58{ 56{
59 int fd; 57 int fd;
58 char buf[300];
60 59
61 if (argc != 2) 60 if (argc != 2)
62 { 61 {