diff options
author | ache <ache@FreeBSD.org> | 2001-12-25 08:10:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-12-25 08:10:34 +0000 |
commit | befc49edf5ef92ed863d7bf926731d2a53619956 (patch) | |
tree | d7785eb5f9ca13bbd93c5a48be209c8d9c4b84c9 /bin/test | |
parent | ae728a75664d68de9c217d1d6b9f8670ef165c1c (diff) | |
download | FreeBSD-src-befc49edf5ef92ed863d7bf926731d2a53619956.zip FreeBSD-src-befc49edf5ef92ed863d7bf926731d2a53619956.tar.gz |
strtoq -> strtoll (strtoq is deprecated)
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index b88085c..bcb85d1 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -181,7 +181,7 @@ static int binop __P((void)); static int equalf __P((const char *, const char *)); static int filstat __P((char *, enum token)); static int getn __P((const char *)); -static quad_t getq __P((const char *)); +static long long getq __P((const char *)); static int intcmp __P((const char *, const char *)); static int isoperand __P((void)); int main __P((int, char **)); @@ -491,15 +491,15 @@ getn(s) } /* atoi with error detection and 64 bit range */ -static quad_t +static long long getq(s) const char *s; { char *p; - quad_t r; + long long r; errno = 0; - r = strtoq(s, &p, 10); + r = strtoll(s, &p, 10); if (s == p) error("%s: bad number", s); @@ -521,7 +521,7 @@ static int intcmp (s1, s2) const char *s1, *s2; { - quad_t q1, q2; + long long q1, q2; q1 = getq(s1); |