From: Jim Jagielski Date: Tue, 18 Jun 2002 01:19:46 +0000 (+0000) Subject: Fold ap_strtol fully into API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec7d155293407779066031ff4f939658fdeef339;p=thirdparty%2Fapache%2Fhttpd.git Fold ap_strtol fully into API PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95748 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ap/ap_strtol.c b/src/ap/ap_strtol.c index 1a2e4e9f6a6..39b5b819ecb 100644 --- a/src/ap/ap_strtol.c +++ b/src/ap/ap_strtol.c @@ -88,7 +88,7 @@ * SUCH DAMAGE. */ - +#include "httpd.h" #include #include #include @@ -101,11 +101,8 @@ * Assumes that the upper and lower case * alphabets and digits are each contiguous. */ -long -ap_strtol(nptr, endptr, base) - const char *nptr; - char **endptr; - int base; + +API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base) { const char *s; unsigned long acc; diff --git a/src/include/ap.h b/src/include/ap.h index 6e2e488c5ae..9f21f24d8bf 100644 --- a/src/include/ap.h +++ b/src/include/ap.h @@ -74,6 +74,8 @@ int ap_slack(int, int); int ap_execle(const char *, const char *, ...); int ap_execve(const char *, char * const argv[], char * const envp[]); API_EXPORT(int) ap_getpass(const char *prompt, char *pwbuf, size_t bufsiz); +API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base); + /* small utility macros to make things easier to read */