summaryrefslogtreecommitdiff
path: root/support/htdigest.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-01-18 23:54:14 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-01-18 23:54:14 +0000
commitcbf6e71e06f7803f6386c01a977c650aa2a1ff00 (patch)
tree09bb376888ffe5a7423dbef6355b2ed8683ad156 /support/htdigest.c
parent7c8a252a45bcd9946d9c9f1f22f03e69e095fcf4 (diff)
downloadhttpd-cbf6e71e06f7803f6386c01a977c650aa2a1ff00.tar.gz
When is a void fn(void) not a void fn(void)? It's a win32'ism, since
the APR_DECLARE (excluding _NONSTD) uses the pascal convention. Really irrelevant in a function that never needs to clean up (atexit), but the compiler complains. Possible workarounds, but that would break non-c lanaguge code from linking into apr. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htdigest.c')
-rw-r--r--support/htdigest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/htdigest.c b/support/htdigest.c
index 3162fdc255..be9b954263 100644
--- a/support/htdigest.c
+++ b/support/htdigest.c
@@ -215,6 +215,11 @@ static void interrupted(void)
exit(1);
}
+static void terminate(void)
+{
+ apr_terminate();
+}
+
int main(int argc, char *argv[])
{
apr_file_t *tfp = NULL, *f;
@@ -234,7 +239,7 @@ int main(int argc, char *argv[])
apr_strerror(rv, line, sizeof(line)), rv);
exit(1);
}
- atexit(apr_terminate);
+ atexit(terminate);
apr_create_pool(&cntxt, NULL);
#if APR_CHARSET_EBCDIC