summaryrefslogtreecommitdiff
path: root/lib-src/test-distrib.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-21 10:06:25 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-21 10:06:25 -0800
commitb23b5a5b7dca39b708015979ed8c25901390ac14 (patch)
tree7a84c8534ce93629c091c9d0db52ddaa5f4b9215 /lib-src/test-distrib.c
parent6d7132563c23774dddcd825797a29ce7ae94253a (diff)
downloademacs-b23b5a5b7dca39b708015979ed8c25901390ac14.tar.gz
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.
Diffstat (limited to 'lib-src/test-distrib.c')
-rw-r--r--lib-src/test-distrib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index acfb147325b..c27f0e35b07 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -26,18 +26,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* Break string in two parts to avoid buggy C compilers that ignore characters
after nulls in strings. */
-char string1[] = "Testing distribution of nonprinting chars:\n\
+static char string1[] = "Testing distribution of nonprinting chars:\n\
Should be 0177: \177 Should be 0377: \377 Should be 0212: \212.\n\
Should be 0000: ";
-char string2[] = ".\n\
+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";
-char buf[300];
+static char buf[300];
/* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */
-int
+static int
cool_read (int fd, char *buf, size_t size)
{
ssize_t num;