diff options
author | 2013-04-17 17:40:35 +0000 | |
---|---|---|
committer | 2013-04-17 17:40:35 +0000 | |
commit | 928cef96820a77291fe483e919fcbcc7abcb3319 (patch) | |
tree | 6d2f17e88a0caab51454d7a136558371549f03ca /lib/libc/stdlib/strtoul.c | |
parent | silence some warnings by adding prototypes, casts, and headers as (diff) | |
download | wireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.tar.xz wireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.zip |
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
Diffstat (limited to 'lib/libc/stdlib/strtoul.c')
-rw-r--r-- | lib/libc/stdlib/strtoul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index d7dddab7784..a236365d2f9 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strtoul.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ +/* $OpenBSD: strtoul.c,v 1.8 2013/04/17 17:40:35 tedu Exp $ */ /* * Copyright (c) 1990 Regents of the University of California. * All rights reserved. @@ -84,7 +84,7 @@ strtoul(const char *nptr, char **endptr, int base) break; if (any < 0) continue; - if (acc > cutoff || acc == cutoff && c > cutlim) { + if (acc > cutoff || (acc == cutoff && c > cutlim)) { any = -1; acc = ULONG_MAX; errno = ERANGE; |