diff options
| author | Paul Eggert | 2011-02-21 15:15:17 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-21 15:15:17 -0800 |
| commit | 08c690977a76a2a899bfe42056e9ae3a7efebcb3 (patch) | |
| tree | bb5f4991a1723c585039a75d685910b6b76b2960 | |
| parent | f0939c31a6f4f7afec3adf3f31817f998af6e667 (diff) | |
| download | emacs-08c690977a76a2a899bfe42056e9ae3a7efebcb3.tar.gz emacs-08c690977a76a2a899bfe42056e9ae3a7efebcb3.zip | |
* test-distrib.c (buf): Make this local, to avoid shadowing.
| -rw-r--r-- | lib-src/ChangeLog | 1 | ||||
| -rw-r--r-- | 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 @@ | |||
| 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\ | |||
| 34 | This file is read by the `test-distribution' program.\n\ | 34 | This file is read by the `test-distribution' program.\n\ |
| 35 | If you change it, you will make that program fail.\n"; | 35 | If you change it, you will make that program fail.\n"; |
| 36 | 36 | ||
| 37 | static 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. */ |
| 40 | static int | 38 | static int |
| 41 | cool_read (int fd, char *buf, size_t size) | 39 | cool_read (int fd, char *buf, size_t size) |
| @@ -57,6 +55,7 @@ int | |||
| 57 | main (int argc, char **argv) | 55 | main (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 | { |