diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 20:24:28 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-09-20 20:24:28 +0000 |
commit | 5919af45fe0fdd5a425228bbc8383aa5b0798c61 (patch) | |
tree | be0fcdcc2e09e35233a813ebe7bb4842caab3e62 /lib/libc/stdlib/atoi.c | |
parent | 74c1506b3359ee725c9031331908b717460830dc (diff) | |
download | FreeBSD-src-5919af45fe0fdd5a425228bbc8383aa5b0798c61.zip FreeBSD-src-5919af45fe0fdd5a425228bbc8383aa5b0798c61.tar.gz |
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/stdlib/atoi.c')
-rw-r--r-- | lib/libc/stdlib/atoi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/stdlib/atoi.c b/lib/libc/stdlib/atoi.c index 564273e..9f92fcd 100644 --- a/lib/libc/stdlib/atoi.c +++ b/lib/libc/stdlib/atoi.c @@ -42,16 +42,13 @@ __FBSDID("$FreeBSD$"); #include <xlocale.h> int -atoi(str) - const char *str; +atoi(const char *str) { return (int)strtol(str, (char **)NULL, 10); } int -atoi_l(str, locale) - const char *str; - locale_t locale; +atoi_l(const char *str, locale_t locale) { return (int)strtol_l(str, (char **)NULL, 10, locale); } |