From d65896cc3c5e67508e295e6d64193210e958971c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Oct 2010 08:44:29 +0200 Subject: lib/replace: fix rep_strtoull() prototype metze --- lib/replace/replace.c | 2 +- lib/replace/replace.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/replace/replace.c b/lib/replace/replace.c index 5ecda9226f..d9a96ff8ef 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -558,7 +558,7 @@ unsigned long long int rep_strtoull(const char *str, char **endptr, int base) #else #ifdef HAVE_BSD_STRTOLL #ifdef HAVE_STRTOUQ -long long int rep_strtoull(const char *str, char **endptr, int base) +unsigned long long int rep_strtoull(const char *str, char **endptr, int base) { unsigned long long int nb = strtouq(str, endptr, base); /* In linux EINVAL is only returned if base is not ok */ diff --git a/lib/replace/replace.h b/lib/replace/replace.h index 8f820a949c..15ec80a97d 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -299,8 +299,8 @@ long long int rep_strtoll(const char *str, char **endptr, int base); #define strtoull rep_strtoull unsigned long long int rep_strtoull(const char *str, char **endptr, int base); #else -#ifdef HAVE_BSD_STRTOLL -long long int rep_strtoull(const char *str, char **endptr, int base); +#ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */ +unsigned long long int rep_strtoull(const char *str, char **endptr, int base); #define strtoull rep_strtoull #endif #endif -- cgit