diff options
author | Andreas Jaeger <aj@suse.de> | 2000-12-27 20:26:07 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-12-27 20:26:07 +0000 |
commit | de149cdbaf9327b5dbb85b1a473fce5c6ec7951f (patch) | |
tree | cc14a903a8e159a33e86e8f15b309abd7fc3e65b /rt | |
parent | 784d802ea2b7f156f59e86b77d4f17ea9effaaba (diff) | |
download | glibc-de149cdbaf9327b5dbb85b1a473fce5c6ec7951f.tar.gz glibc-de149cdbaf9327b5dbb85b1a473fce5c6ec7951f.tar.xz glibc-de149cdbaf9327b5dbb85b1a473fce5c6ec7951f.zip |
Make local functions static.
Diffstat (limited to 'rt')
-rw-r--r-- | rt/tst-aio2.c | 4 | ||||
-rw-r--r-- | rt/tst-aio3.c | 6 | ||||
-rw-r--r-- | rt/tst-aio4.c | 6 | ||||
-rw-r--r-- | rt/tst-aio5.c | 6 | ||||
-rw-r--r-- | rt/tst-clock.c | 4 | ||||
-rw-r--r-- | rt/tst-shm.c | 2 |
6 files changed, 14 insertions, 14 deletions
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; |