lib/replace: fix rep_strtoull() prototype
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Oct 2010 06:44:29 +0000 (08:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Oct 2010 06:49:28 +0000 (08:49 +0200)
metze

lib/replace/replace.c
lib/replace/replace.h

index 5ecda9226f01711e7269c7baba52ddf94491be03..d9a96ff8ef9219e92cd7ed09b3971b60c6da16f0 100644 (file)
@@ -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 */
index 8f820a949cad431236e1176924507d3fd857cb5c..15ec80a97d3ca9738b67e497521503b180c0eec2 100644 (file)
@@ -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