svn commit: trunk/uClibc/libc/sysdeps/linux/i386

vapier at uclibc.org vapier at uclibc.org
Mon Nov 21 23:57:50 UTC 2005


Author: vapier
Date: 2005-11-21 15:57:49 -0800 (Mon, 21 Nov 2005)
New Revision: 12468

Log:
tweak restore function definitions like glibc does it to get rid of warnings

Modified:
   trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c	2005-11-21 23:57:18 UTC (rev 12467)
+++ trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c	2005-11-21 23:57:49 UTC (rev 12468)
@@ -29,9 +29,8 @@
 
 
 #if defined __NR_rt_sigaction
-#warning "Yes there are two warnings here.  Don't worry about it."
-static void restore_rt (void) asm ("__restore_rt");
-static void restore (void) asm ("__restore");
+extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
+extern void restore (void) asm ("__restore") attribute_hidden;
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
    If OACT is not NULL, put the old action for SIG in *OACT.  */
@@ -73,8 +72,7 @@
 
 
 #else
-#warning "Yes there is a warning here.  Don't worry about it."
-static void restore (void) asm ("__restore");
+extern void restore (void) asm ("__restore") attribute_hidden;
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
    If OACT is not NULL, put the old action for SIG in *OACT.  */




More information about the uClibc-cvs mailing list