summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorwsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68>2002-07-24 23:31:57 +0000
committerwsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68>2002-07-24 23:31:57 +0000
commit43fa4fb3cbbc758fba11ecd1a7432f0d344b445d (patch)
tree1a7cc7510ad552e6100351a18507d515e9423868 /strings
parentcf3a27121d2863f67c6c78f6f8a27fa92fad5be2 (diff)
downloadlibapr-43fa4fb3cbbc758fba11ecd1a7432f0d344b445d.tar.gz
Use apr_int64_t instead of long long as return type for apr_strtoll() and apr_atol().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r--strings/apr_strings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strings/apr_strings.c b/strings/apr_strings.c
index 98a21d4a6..dddf694b1 100644
--- a/strings/apr_strings.c
+++ b/strings/apr_strings.c
@@ -233,17 +233,17 @@ void *memchr(const void *s, int c, size_t n)
}
#endif
-APR_DECLARE(long long) apr_strtoll(const char *buf, char **end, int base)
+APR_DECLARE(apr_int64_t) apr_strtoll(const char *buf, char **end, int base)
{
#if (APR_HAVE_STRTOLL)
- return strtoll(buf, end, base);
+ return (apr_int64_t)strtoll(buf, end, base);
#else
/* best-effort function. If no strtoll, use strtol */
- return (long long)strtol(buf, end, base);
+ return (apr_int64_t)strtol(buf, end, base);
#endif
}
-APR_DECLARE(long long) apr_atoll(const char *buf)
+APR_DECLARE(apr_int64_t) apr_atoll(const char *buf)
{
return apr_strtoll(buf, NULL, 0);
}