]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(STRTOX): Convert function header in macro definition
authorJim Meyering <jim@meyering.net>
Wed, 2 Jul 1997 16:07:44 +0000 (16:07 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 2 Jul 1997 16:07:44 +0000 (16:07 +0000)
to K&R-style.  Otherwise, ansi2knr would fail to convert the function
definitions to K&R for old style compilers.  From Kaveh Ghazi.

src/printf.c

index 65c8f94e16cdbb0ee67ac032e3480ed76505eac2..0a1c89b190dc429455f2a318cd977bd0e0993103 100644 (file)
@@ -143,7 +143,8 @@ verify (const char *s, const char *end)
 
 #define STRTOX(TYPE, FUNC_NAME, LIB_FUNC_EXPR)                          \
 static TYPE                                                             \
-FUNC_NAME (const char *s)                                               \
+FUNC_NAME (s)                                                           \
+     const char *s;                                                     \
 {                                                                       \
   char *end;                                                            \
   TYPE val;                                                             \