summaryrefslogtreecommitdiff
path: root/libiberty/strtol.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-04-02 19:57:12 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-04-02 19:57:12 +0000
commitf9a9ac80d6a6b5a8e7d64d3d0c81e95fb0003238 (patch)
treeaffa924d98f9c5b1f7c2ae042a32d290d2648be3 /libiberty/strtol.c
parent577e5d76f980c812f7f26f6aeded7cda5049c5d7 (diff)
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
Diffstat (limited to 'libiberty/strtol.c')
-rw-r--r--libiberty/strtol.c2
1 files changed, 1 insertions, 1 deletions
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;