1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

* test-distrib.c (buf): Make this local, to avoid shadowing.

This commit is contained in:
Paul Eggert 2011-02-21 15:15:17 -08:00
parent f0939c31a6
commit 08c690977a
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)
{