libc: __atfork() is only used by the WR() in this file, so make it static.
authorSascha Wildner <saw@online.de>
Sun, 2 Feb 2014 00:05:58 +0000 (01:05 +0100)
committerSascha Wildner <saw@online.de>
Sun, 2 Feb 2014 00:05:58 +0000 (01:05 +0100)
Also mark it __used.

This silences a -Wmissing-prototypes warning.

lib/libc/gen/Symbol.map
lib/libc/gen/_pthread_stubs.c

index abc48cf..61a76a7 100644 (file)
@@ -653,5 +653,4 @@ DFprivate_1.0 {
     _wait;
     _waitpid;
     _warn;
-    __atfork;
 };
index a3a0272..31cf5b6 100644 (file)
@@ -244,7 +244,7 @@ extern void (*cb_parent)(void);
 extern void (*cb_child)(void);
 extern int __isthreaded;
 
-int
+static int __used
 __atfork(void (*prepare)(void), void (*parent)(void),
     void (*child)(void))
 {