bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build fix glibc-2.3.2/ gcc 3.3.2


From: Rainer Weikusat
Subject: build fix glibc-2.3.2/ gcc 3.3.2
Date: Tue, 13 Jan 2004 16:44:31 +0100

gcc 3.3.2 refuses to compile glibc-2.3.2 because
sscanf (from stdio-common) is a K&R-style function
declared w/o ... and the compiler complains about
'va_list used in non-variadic function' (this is not
the exact text of the message). The follwing patch
corrects this:

--------------------------------
diff -ru glibc-2.3.2.orig/stdio-common/sscanf.c 
glibc-2.3.2/stdio-common/sscanf.c
--- glibc-2.3.2.orig/stdio-common/sscanf.c      Sat Aug 10 20:09:08 2002
+++ glibc-2.3.2/stdio-common/sscanf.c   Tue Jan 13 12:43:00 2004
@@ -27,9 +27,7 @@
 /* Read formatted input from S, according to the format string FORMAT.  */
 /* VARARGS2 */
 int
-sscanf (s, format)
-     const char *s;
-     const char *format;
+sscanf (char const *s, char const *format, ...)
 {
   va_list arg;
   int done;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]