1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

Declare file-scope functions and variables static if not exported.

This is more consistent, and is nicer with gcc -Wstrict-prototypes.
* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
* profile.c, test-distrib.c, update-game-score.c:
Declare non-'main' functions and variables to be static.
* ebrowse.c: Omit redundant function prototypes.
This commit is contained in:
Paul Eggert 2011-02-21 10:06:25 -08:00
parent 6d7132563c
commit b23b5a5b7d
9 changed files with 181 additions and 215 deletions

View file

@ -161,7 +161,7 @@ static int mbx_delimit_end (FILE *mbf);
#endif
/* Nonzero means this is name of a lock file to delete on fatal error. */
char *delete_lockname;
static char *delete_lockname;
int
main (int argc, char **argv)
@ -672,12 +672,12 @@ xmalloc (unsigned int size)
#define OK 0
#define DONE 1
char *progname;
FILE *sfi;
FILE *sfo;
char ibuffer[BUFSIZ];
char obuffer[BUFSIZ];
char Errmsg[200]; /* POP errors, at least, can exceed
static char *progname;
static FILE *sfi;
static FILE *sfo;
static char ibuffer[BUFSIZ];
static char obuffer[BUFSIZ];
static char Errmsg[200]; /* POP errors, at least, can exceed
the original length of 80. */
/*