From f9a9ac80d6a6b5a8e7d64d3d0c81e95fb0003238 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 2 Apr 2005 19:57:12 +0000 Subject: configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings -Wstrict-prototypes. * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings -Wstrict-prototypes. * configure, config.in: Regenerate. * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix warnings and reconcile interfaces with relevant standards. From-SVN: r97456 --- libiberty/strtol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiberty/strtol.c') diff --git a/libiberty/strtol.c b/libiberty/strtol.c index 5f2a1cebb20..acc7882192b 100644 --- a/libiberty/strtol.c +++ b/libiberty/strtol.c @@ -144,7 +144,7 @@ strtol(const char *nptr, char **endptr, register int base) break; if (c >= base) break; - if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim) + if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) any = -1; else { any = 1; -- cgit v1.2.3