summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-27 20:26:07 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-27 20:26:07 +0000
commitde149cdbaf9327b5dbb85b1a473fce5c6ec7951f (patch)
treecc14a903a8e159a33e86e8f15b309abd7fc3e65b
parent784d802ea2b7f156f59e86b77d4f17ea9effaaba (diff)
Make local functions static.
-rw-r--r--dirent/list.c4
-rw-r--r--dirent/opendir-tst1.c4
-rw-r--r--linuxthreads/joinrace.c2
-rw-r--r--misc/tst-efgcvt.c10
-rw-r--r--posix/runtests.c2
-rw-r--r--posix/tst-chmod.c2
-rw-r--r--posix/tst-getaddrinfo.c2
-rw-r--r--posix/wordexp-test.c2
-rw-r--r--rt/tst-aio2.c4
-rw-r--r--rt/tst-aio3.c6
-rw-r--r--rt/tst-aio4.c6
-rw-r--r--rt/tst-aio5.c6
-rw-r--r--rt/tst-clock.c4
-rw-r--r--rt/tst-shm.c2
-rw-r--r--setjmp/jmpbug.c4
-rw-r--r--setjmp/tst-setjmp.c4
-rw-r--r--signal/tst-signal.c2
-rw-r--r--stdio-common/tfformat.c3
-rw-r--r--string/tst-svc.c2
-rw-r--r--time/clocktest.c2
-rw-r--r--time/tst-getdate.c2
-rw-r--r--timezone/tst-timezone.c8
22 files changed, 42 insertions, 41 deletions
diff --git a/dirent/list.c b/dirent/list.c
index 6ce22c6ea1..ae80def4e7 100644
--- a/dirent/list.c
+++ b/dirent/list.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,7 @@
#include <dirent.h>
-int
+static int
test (const char *name)
{
DIR *dirp;
diff --git a/dirent/opendir-tst1.c b/dirent/opendir-tst1.c
index 4ecd5ae446..37f876cc4a 100644
--- a/dirent/opendir-tst1.c
+++ b/dirent/opendir-tst1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
The GNU C Library is free software; you can redistribute it and/or
@@ -84,7 +84,7 @@ do_test (int argc, char *argv[])
}
-void
+static void
do_cleanup (void)
{
remove (tmpname);
diff --git a/linuxthreads/joinrace.c b/linuxthreads/joinrace.c
index 0a00355d59..8e1064c984 100644
--- a/linuxthreads/joinrace.c
+++ b/linuxthreads/joinrace.c
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
-void *
+static void *
sub1 (void *arg)
{
/* Nothing. */
diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c
index f2edb9d912..49af1b058c 100644
--- a/misc/tst-efgcvt.c
+++ b/misc/tst-efgcvt.c
@@ -86,7 +86,7 @@ static testcase fcvt_tests[] =
{ -1.0, 0, 0, "" }
};
-void
+static void
output_error (const char *name, double value, int ndigit,
const char *exp_p, int exp_decpt, int exp_sign,
char *res_p, int res_decpt, int res_sign)
@@ -101,7 +101,7 @@ output_error (const char *name, double value, int ndigit,
}
-void
+static void
output_r_error (const char *name, double value, int ndigit,
const char *exp_p, int exp_decpt, int exp_sign, int exp_return,
char *res_p, int res_decpt, int res_sign, int res_return)
@@ -115,7 +115,7 @@ output_r_error (const char *name, double value, int ndigit,
++error_count;
}
-void
+static void
test (testcase tests[], efcvt_func efcvt, const char *name)
{
int no = 0;
@@ -136,7 +136,7 @@ test (testcase tests[], efcvt_func efcvt, const char *name)
}
}
-void
+static void
test_r (testcase tests[], efcvt_r_func efcvt_r, const char *name)
{
int no = 0;
@@ -160,7 +160,7 @@ test_r (testcase tests[], efcvt_r_func efcvt_r, const char *name)
}
}
-void
+static void
special (void)
{
int decpt, sign, res;
diff --git a/posix/runtests.c b/posix/runtests.c
index 1e91b11e68..2a5ef6c820 100644
--- a/posix/runtests.c
+++ b/posix/runtests.c
@@ -48,7 +48,7 @@ static const struct a_test the_tests[] =
-int
+static int
run_a_test (int id, const struct a_test * t)
{
static const char * last_pattern = 0;
diff --git a/posix/tst-chmod.c b/posix/tst-chmod.c
index 70f4de0776..7d26655776 100644
--- a/posix/tst-chmod.c
+++ b/posix/tst-chmod.c
@@ -36,7 +36,7 @@
goto fail; \
} while (0)
-int
+static int
do_test (int argc, char *argv[])
{
const char *builddir;
diff --git a/posix/tst-getaddrinfo.c b/posix/tst-getaddrinfo.c
index a37a8d62d9..84929f57e4 100644
--- a/posix/tst-getaddrinfo.c
+++ b/posix/tst-getaddrinfo.c
@@ -23,7 +23,7 @@
#include <netinet/in.h>
#include <netdb.h>
-int
+static int
do_test (void)
{
const int family[3] = { AF_INET, AF_INET6, AF_UNIX };
diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c
index 79e094c3dc..35a9725a4c 100644
--- a/posix/wordexp-test.c
+++ b/posix/wordexp-test.c
@@ -208,7 +208,7 @@ struct test_case_struct
static int testit (struct test_case_struct *tc);
static int tests;
-void
+static void
command_line_test (const char *words)
{
wordexp_t we;
diff --git a/rt/tst-aio2.c b/rt/tst-aio2.c
index 79c8390116..c628691693 100644
--- a/rt/tst-aio2.c
+++ b/rt/tst-aio2.c
@@ -27,14 +27,14 @@
int flag;
-void
+static void
thrfct (sigval_t arg)
{
flag = 1;
}
-int
+static int
do_test (int argc, char *argv[])
{
char name[] = "/tmp/aio2.XXXXXX";
diff --git a/rt/tst-aio3.c b/rt/tst-aio3.c
index b5bd3704aa..ea257771c6 100644
--- a/rt/tst-aio3.c
+++ b/rt/tst-aio3.c
@@ -26,14 +26,14 @@
int flag;
-void
+static void
thrfct (sigval_t arg)
{
flag = 1;
}
-int
+static int
do_test (int argc, char *argv[])
{
char name[] = "/tmp/aio3.XXXXXX";
@@ -74,7 +74,7 @@ do_test (int argc, char *argv[])
printf ("aio_suspend failed: %m\n");
return 1;
}
-
+
if (flag != 0)
{
puts ("thread created, should not have happened");
diff --git a/rt/tst-aio4.c b/rt/tst-aio4.c
index a0bc7fdbab..49023f1fb3 100644
--- a/rt/tst-aio4.c
+++ b/rt/tst-aio4.c
@@ -31,13 +31,13 @@
volatile sig_atomic_t flag;
-void
+static void
sighandler (const int signo)
{
flag = signo;
}
-int
+static int
wait_flag (void)
{
while (flag == 0)
@@ -56,7 +56,7 @@ wait_flag (void)
}
-int
+static int
do_test (int argc, char *argv[])
{
char name[] = "/tmp/aio4.XXXXXX";
diff --git a/rt/tst-aio5.c b/rt/tst-aio5.c
index 908f7c10da..307550e4f3 100644
--- a/rt/tst-aio5.c
+++ b/rt/tst-aio5.c
@@ -31,13 +31,13 @@
volatile sig_atomic_t flag;
-void
+static void
callback (sigval_t s)
{
flag = s.sival_int;
}
-int
+static int
wait_flag (void)
{
while (flag == 0)
@@ -56,7 +56,7 @@ wait_flag (void)
}
-int
+static int
do_test (int argc, char *argv[])
{
char name[] = "/tmp/aio5.XXXXXX";
diff --git a/rt/tst-clock.c b/rt/tst-clock.c
index d9a41e0d5c..095fca87fa 100644
--- a/rt/tst-clock.c
+++ b/rt/tst-clock.c
@@ -28,7 +28,7 @@
/* We expect to run at least 10 seconds. */
#define TIMEOUT 15
-int
+static int
clock_test (clockid_t cl)
{
struct timespec old_ts;
@@ -101,7 +101,7 @@ clock_test (clockid_t cl)
return result;
}
-int
+static int
do_test (void)
{
clockid_t cl;
diff --git a/rt/tst-shm.c b/rt/tst-shm.c
index a1ec6df585..9e970eeb6f 100644
--- a/rt/tst-shm.c
+++ b/rt/tst-shm.c
@@ -122,7 +122,7 @@ worker (int write_now)
}
-int
+static int
do_test (void)
{
int fd;
diff --git a/setjmp/jmpbug.c b/setjmp/jmpbug.c
index 0dbf7f9231..125977b2f7 100644
--- a/setjmp/jmpbug.c
+++ b/setjmp/jmpbug.c
@@ -4,13 +4,13 @@
#include <setjmp.h>
#include <alloca.h>
-void
+static void
sub5 (jmp_buf buf)
{
longjmp (buf, 1);
}
-void
+static void
test (int x)
{
jmp_buf buf;
diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
index 3eb1516830..90dac0585c 100644
--- a/setjmp/tst-setjmp.c
+++ b/setjmp/tst-setjmp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,7 @@
static jmp_buf env;
static int last_value = -1, lose = 0;
-void
+static void
jump (int val)
{
longjmp (env, val);
diff --git a/signal/tst-signal.c b/signal/tst-signal.c
index 37e44a3a21..ef792e8cbf 100644
--- a/signal/tst-signal.c
+++ b/signal/tst-signal.c
@@ -5,7 +5,7 @@
int win = 0;
-void
+static void
handler (int sig)
{
printf ("Received signal %d (%s).\n", sig, strsignal(sig));
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c
index 41432b2a92..8e138a2ada 100644
--- a/stdio-common/tfformat.c
+++ b/stdio-common/tfformat.c
@@ -4023,7 +4023,8 @@ sprint_double_type sprint_doubles[] =
int required_precision = 13;
#if defined(__STDC__) || defined(__cplusplus)
-int matches(register char *result, register const char *desired)
+static int
+matches (register char *result, register const char *desired)
#else
int matches(result, desired)
register char *result; register const char *desired;
diff --git a/string/tst-svc.c b/string/tst-svc.c
index c6add5b4b1..30a161e70a 100644
--- a/string/tst-svc.c
+++ b/string/tst-svc.c
@@ -7,7 +7,7 @@
#define MAX_STRINGS 256
#define MAX_LINE_SIZE 32
-int
+static int
compare (const void *p1, const void *p2)
{
return strverscmp (*((char **) p1), *((char **) p2));
diff --git a/time/clocktest.c b/time/clocktest.c
index cd5fd51aa6..f2b3ea73a1 100644
--- a/time/clocktest.c
+++ b/time/clocktest.c
@@ -6,7 +6,7 @@
volatile int gotit = 0;
-void
+static void
alarm_handler (int signal)
{
gotit = 1;
diff --git a/time/tst-getdate.c b/time/tst-getdate.c
index d5824f6766..770c8b25b2 100644
--- a/time/tst-getdate.c
+++ b/time/tst-getdate.c
@@ -35,7 +35,7 @@ static const struct
{"16:30:46 2000-2-29", 0, {46, 30,16, 29, 1, 100, 0, 0, 0}}
};
-void
+static void
report_date_error (int err)
{
switch(err)
diff --git a/timezone/tst-timezone.c b/timezone/tst-timezone.c
index edff458abd..edcdfb805a 100644
--- a/timezone/tst-timezone.c
+++ b/timezone/tst-timezone.c
@@ -1,6 +1,6 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
+ Contributed by Andreas Jaeger <aj@suse.de>, 1998.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -52,7 +52,7 @@ static const struct test_times tests[] =
/* This string will be used for `putenv' calls. */
char envstring[100];
-void
+static void
print_tzvars (void)
{
printf ("tzname[0]: %s\n", tzname[0]);
@@ -62,7 +62,7 @@ print_tzvars (void)
}
-void
+static void
check_tzvars (const char *name, int dayl, int timez, const char *const tznam[])
{
int i;