X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fgenext2fs%2Fpatches%2F100-c99_scanf.patch;fp=tools%2Fgenext2fs%2Fpatches%2F100-c99_scanf.patch;h=0000000000000000000000000000000000000000;hb=8c68c104eaba65273280c7a4727fbb10ab10f5af;hp=e7aa17cc6fa15252bd4eaf195e03aee58e8dcc27;hpb=0ee950491197e8c528249d64ca3276b39bad0ddd;p=openwrt%2F.git diff --git a/tools/genext2fs/patches/100-c99_scanf.patch b/tools/genext2fs/patches/100-c99_scanf.patch deleted file mode 100644 index e7aa17cc6f..0000000000 --- a/tools/genext2fs/patches/100-c99_scanf.patch +++ /dev/null @@ -1,21 +0,0 @@ -commit 3b8ca0ce9a0b58287a780747c90c449bdebfe464 -Author: Xavier Bestel -Date: Mon Jan 14 08:52:44 2008 +0000 - - removed use of %as is scanf (GNU conflicts with C99) by Giacomo Catenazzi - -diff --git a/genext2fs.c b/genext2fs.c -index 070b270..f0d797d 100644 ---- a/genext2fs.c -+++ b/genext2fs.c -@@ -286,7 +286,9 @@ typedef unsigned int uint32; - // older solaris. Note that this is still not very portable, in that - // the return value cannot be trusted. - --#if SCANF_CAN_MALLOC -+#if 0 // SCANF_CAN_MALLOC -+// C99 define "a" for floating point, so you can have runtime surprise -+// according the library versions - # define SCANF_PREFIX "a" - # define SCANF_STRING(s) (&s) - #else