diff options
author | jb <jb@FreeBSD.org> | 1998-05-11 09:22:21 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-11 09:22:21 +0000 |
commit | 655e9a55d2edbd0647d08670c1f71fcb6bfc91f4 (patch) | |
tree | 25f6585100f1a0e4335cdda4cac9ae0aa5aff256 | |
parent | d2db96ea0c29749ec33a982022bc46de6ebf0c62 (diff) | |
download | FreeBSD-src-655e9a55d2edbd0647d08670c1f71fcb6bfc91f4.zip FreeBSD-src-655e9a55d2edbd0647d08670c1f71fcb6bfc91f4.tar.gz |
Change the return types for strtoq and strtouq to int64_t and u_int64_t
instead of long long and unsigned long long. Really they should be
quad_t and u_quad_t, but that would require sys/types.h and this
header only includes machine/types.h. The difference here is that
int64_t and u_int64_t on alpha are long and unsigned long, not
long long etc. This is required to pass gcc's type checking where
long != long long even though they are the same size of alpha.
-rw-r--r-- | include/stdlib.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index af2a6f5..960bf43 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -169,9 +169,8 @@ void srandom __P((unsigned long)); void srandomdev __P((void)); char *user_from_uid __P((unsigned long, int)); #ifndef __STRICT_ANSI__ -long long - strtoq __P((const char *, char **, int)); -unsigned long long +int64_t strtoq __P((const char *, char **, int)); +u_int64_t strtouq __P((const char *, char **, int)); #endif void unsetenv __P((const char *)); |