summary refs log tree commit diff
path: root/stdlib/bug-strtod.c
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2016-08-30 11:43:21 +0530
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-10-25 17:05:47 -0200
commitbf5eea32ac456b68ede40ee99031b0cd7726bcdd (patch)
tree4d3276ac9c5455bf994b7fa7def7ef5e6867070d /stdlib/bug-strtod.c
parent6962682ffe5e5f0373047a0b894fee7a774be254 (diff)
downloadglibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.gz
glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.xz
glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.zip
Refactor strtod tests
This patch changes strtod* tests to use strfrom* functions.
Diffstat (limited to 'stdlib/bug-strtod.c')
-rw-r--r--stdlib/bug-strtod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/bug-strtod.c b/stdlib/bug-strtod.c
index c8b56aa7e1..ac5193e4ed 100644
--- a/stdlib/bug-strtod.c
+++ b/stdlib/bug-strtod.c
@@ -23,7 +23,7 @@
 
 #include "tst-strtod.h"
 
-#define TEST_STRTOD(FSUF, FTYPE, FTOSTR, FTOSTRM, LSUF, CSUF)		\
+#define TEST_STRTOD(FSUF, FTYPE, FTOSTR, LSUF, CSUF)			\
 static int								\
 test_strto ## FSUF (void)						\
 {									\
@@ -45,8 +45,8 @@ test_strto ## FSUF (void)						\
 	{								\
 	  char fstr[FSTRLENMAX];					\
 	  char fcntstr[FSTRLENMAX];					\
-	  FTOSTR (fstr, sizeof (fstr), "%" FTOSTRM "g", f);		\
-	  FTOSTR (fcntstr, sizeof (fstr), "%" FTOSTRM "g", (FTYPE) cnt); \
+	  FTOSTR (fstr, sizeof (fstr), "%g", f);			\
+	  FTOSTR (fcntstr, sizeof (fstr), "%g", (FTYPE) cnt); 		\
 	  printf ("strto" #FSUF "(\"%s\") "				\
 		  "failed for cnt == %d (%s instead of %s)\n",		\
 		  buf, cnt, fstr, fcntstr);				\