[Top][All Lists]

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


From: Rupert Mazzucco
Subject: sscanf.c
Date: Wed, 21 May 2003 14:03:27 +0200 (CEST)

Error building glibc-2.3.2 release with recently released
gcc 3.3 on GNU/Linux (modified Slackware 8.1 with kernel 2.4.19):

Compiler chokes on old style declarations in sscanf.c.

The following change seems to resolve this problem. (I
say seems, because it has not built sucessfully yet.)

--- glibc-2.3.2/stdio-common/sscanf.c.orig      2003-05-21 13:49:32.000000000 
+++ glibc-2.3.2/stdio-common/sscanf.c   2003-05-21 13:49:56.000000000 +0200
@@ -27,9 +27,7 @@
 /* Read formatted input from S, according to the format string FORMAT.  */
 /* VARARGS2 */
-sscanf (s, format)
-     const char *s;
-     const char *format;
+sscanf (const char* s, const char* format, ...)
   va_list arg;
   int done;

reply via email to

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