e7aa17cc6fa15252bd4eaf195e03aee58e8dcc27
[openwrt/openwrt.git] / tools / genext2fs / patches / 100-c99_scanf.patch
1 commit 3b8ca0ce9a0b58287a780747c90c449bdebfe464
2 Author: Xavier Bestel <bestouff@users.sourceforge.net>
3 Date: Mon Jan 14 08:52:44 2008 +0000
4
5 removed use of %as is scanf (GNU conflicts with C99) by Giacomo Catenazzi <cate@debian.org>
6
7 diff --git a/genext2fs.c b/genext2fs.c
8 index 070b270..f0d797d 100644
9 --- a/genext2fs.c
10 +++ b/genext2fs.c
11 @@ -286,7 +286,9 @@ typedef unsigned int uint32;
12 // older solaris. Note that this is still not very portable, in that
13 // the return value cannot be trusted.
14
15 -#if SCANF_CAN_MALLOC
16 +#if 0 // SCANF_CAN_MALLOC
17 +// C99 define "a" for floating point, so you can have runtime surprise
18 +// according the library versions
19 # define SCANF_PREFIX "a"
20 # define SCANF_STRING(s) (&s)
21 #else