]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make local functions static.
authorAndreas Jaeger <aj@suse.de>
Wed, 27 Dec 2000 20:26:07 +0000 (20:26 +0000)
committerAndreas Jaeger <aj@suse.de>
Wed, 27 Dec 2000 20:26:07 +0000 (20:26 +0000)
22 files changed:
dirent/list.c
dirent/opendir-tst1.c
linuxthreads/joinrace.c
misc/tst-efgcvt.c
posix/runtests.c
posix/tst-chmod.c
posix/tst-getaddrinfo.c
posix/wordexp-test.c
rt/tst-aio2.c
rt/tst-aio3.c
rt/tst-aio4.c
rt/tst-aio5.c
rt/tst-clock.c
rt/tst-shm.c
setjmp/jmpbug.c
setjmp/tst-setjmp.c
signal/tst-signal.c
stdio-common/tfformat.c
string/tst-svc.c
time/clocktest.c
time/tst-getdate.c
timezone/tst-timezone.c

index 6ce22c6ea16c55f1f5ff20a3db8bc5a2eba8d2a3..ae80def4e7d7d900dea44410fc0b4fb2da826614 100644 (file)
@@ -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;
index 4ecd5ae44647e0f192b96598fc35d1d0b9b18ebf..37f876cc4a4f41ee39e68729cee7d8f171b9d266 100644 (file)
@@ -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);
index 0a00355d594debcb7128d424099bd0e1f5683ce2..8e1064c984ef7bf4876e601429efd52d9f73b751 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-void *
+static void *
 sub1 (void *arg)
 {
   /* Nothing.  */
index f2edb9d9129931eeccee4b0aeae0fafba0de2100..49af1b058c8f76b5a8de9513476914d0d3355f7c 100644 (file)
@@ -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;
index 1e91b11e682f18889d491b0c69b44222a63f4707..2a5ef6c820d3fa6bffd2a514964f689b6ad83c6e 100644 (file)
@@ -48,7 +48,7 @@ static const struct a_test the_tests[] =
 
 \f
 
-int
+static int
 run_a_test (int id, const struct a_test * t)
 {
   static const char * last_pattern = 0;
index 70f4de07765ab78c54dd1dba94cf0c811d136584..7d26655776c38d69b0d86f221a12a9572d62d56d 100644 (file)
@@ -36,7 +36,7 @@
     goto fail;                                                               \
   } while (0)
 
-int
+static int
 do_test (int argc, char *argv[])
 {
   const char *builddir;
index a37a8d62d9aab6023d6afab56c7e732775a4a811..84929f57e498a91015557cc4b559b76ec982ce2d 100644 (file)
@@ -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 };
index 79e094c3dce7140c5d2ac2147351226ace8528ab..35a9725a4cf4db2c10e20b16cffddcffbc309b4e 100644 (file)
@@ -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;
index 79c83901163c0e597bd4a123423a261dc7f519e5..c6286916938f9fb617aa3c7afeb085fa4adcd234 100644 (file)
 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";
index b5bd3704aadac47c40e7c37b57373c70ef43af84..ea257771c6585b67123e2ae92242b62dbd424388 100644 (file)
 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");
index a0bc7fdbabe122c68756ed43078fa6e31e5510e0..49023f1fb3e2307479ae039af94b884a1512a5f7 100644 (file)
 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";
index 908f7c10da3733b5f8e26a83c05b7fdd9a5c08ec..307550e4f3ed2d5fc315d1f426988140ebb44376 100644 (file)
 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";
index d9a41e0d5c7132e72a2f3b741c2f17379cf5d50f..095fca87faa8eec9fa6ab991898e48a309a10434 100644 (file)
@@ -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;
index a1ec6df5851d210bd67e87a6b30b3edfb5b40a39..9e970eeb6f87249fb739b9dd0ecc62f200138766 100644 (file)
@@ -122,7 +122,7 @@ worker (int write_now)
 }
 
 
-int
+static int
 do_test (void)
 {
   int fd;
index 0dbf7f9231cf367710ea8107316626697127001e..125977b2f719dbeb5743c5133d144802d4b35cb7 100644 (file)
@@ -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;
index 3eb1516830a265da80078f0ba500dd9eb81f4aad..90dac0585c97ae227241c47328fd8cba2690dcc8 100644 (file)
@@ -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);
index 37e44a3a21377fb6410c81a6cf509cf1bf5a6fb9..ef792e8cbf08e2ebde6f037fbc118d8134a930b9 100644 (file)
@@ -5,7 +5,7 @@
 
 int win = 0;
 
-void
+static void
 handler (int sig)
 {
   printf ("Received signal %d (%s).\n", sig, strsignal(sig));
index 41432b2a9242c215efe9b52144b93db59d40c78d..8e138a2ada9a5007eb8cea10b102863c4b900c15 100644 (file)
@@ -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;
index c6add5b4b129cc7daac79f95c5ff3471df5798d4..30a161e70a4b21927f6320439bf16aed95d34951 100644 (file)
@@ -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));
index cd5fd51aa63e057b1249096b370ce3ba5d261723..f2b3ea73a15fe35d9fb63ed24753f4397d3d2066 100644 (file)
@@ -6,7 +6,7 @@
 
 volatile int gotit = 0;
 
-void
+static void
 alarm_handler (int signal)
 {
     gotit = 1;
index d5824f67665527f22e8fb707add8f616d683a88a..770c8b25b2ab451a768baf9e305364a2b373cbe0 100644 (file)
@@ -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)
index edff458abd99d4e9b0c165ef48afdc6f1740033f..edcdfb805abe8106600902c08c3bb13fc38009e5 100644 (file)
@@ -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;