diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-15 12:17:19 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-15 12:17:19 +0000 |
commit | 4dd656673fec128a8b151f31e8b2751ef35d0097 (patch) | |
tree | 48c7b33e561a1759a4957197614d72a01a00590f | |
parent | 09fb9af609d408ace96974cea3b94078bba88609 (diff) |
Fix printf format string. ok henning@
-rw-r--r-- | usr.sbin/httpd/src/main/http_protocol.c | 4 | ||||
-rw-r--r-- | usr.sbin/httpd/src/modules/proxy/proxy_cache.c | 2 | ||||
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_log_config.c | 4 | ||||
-rw-r--r-- | usr.sbin/httpd/src/support/ab.c | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/httpd/src/main/http_protocol.c b/usr.sbin/httpd/src/main/http_protocol.c index 81159e7a234..031ff3ca031 100644 --- a/usr.sbin/httpd/src/main/http_protocol.c +++ b/usr.sbin/httpd/src/main/http_protocol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http_protocol.c,v 1.24 2004/01/13 16:32:53 otto Exp $ */ +/* $OpenBSD: http_protocol.c,v 1.25 2004/01/15 12:17:18 otto Exp $ */ /* ==================================================================== * The Apache Software License, Version 1.1 * @@ -1421,7 +1421,7 @@ API_EXPORT(void) ap_note_digest_auth_failure(request_rec *r) r->proxyreq == STD_PROXY ? "Proxy-Authenticate" : "WWW-Authenticate", ap_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%lu\"", - ap_auth_name(r), r->request_time)); + ap_auth_name(r), (unsigned long)r->request_time)); } API_EXPORT(int) ap_get_basic_auth_pw(request_rec *r, const char **pw) diff --git a/usr.sbin/httpd/src/modules/proxy/proxy_cache.c b/usr.sbin/httpd/src/modules/proxy/proxy_cache.c index 6b1c4f52cb2..45c316896fc 100644 --- a/usr.sbin/httpd/src/modules/proxy/proxy_cache.c +++ b/usr.sbin/httpd/src/modules/proxy/proxy_cache.c @@ -1047,7 +1047,7 @@ int ap_proxy_cache_check(request_rec *r, char *url, struct cache_conf * conf, /* if the cache file exists, open it */ cachefp = NULL; ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, r->server, "Request for %s, pragma_req=%s, ims=%ld", url, - (pragma_req == NULL) ? "(unset)" : pragma_req, c->ims); + (pragma_req == NULL) ? "(unset)" : pragma_req, (long)c->ims); /* find out about whether the request can access the cache */ if (c->filename != NULL && r->method_number == M_GET && strlen(url) < 1024) { diff --git a/usr.sbin/httpd/src/modules/standard/mod_log_config.c b/usr.sbin/httpd/src/modules/standard/mod_log_config.c index e40646a06c2..d67f7e767f7 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_log_config.c +++ b/usr.sbin/httpd/src/modules/standard/mod_log_config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mod_log_config.c,v 1.14 2003/08/21 13:11:36 henning Exp $ */ +/* $OpenBSD: mod_log_config.c,v 1.15 2004/01/15 12:17:18 otto Exp $ */ /* ==================================================================== * The Apache Software License, Version 1.1 @@ -453,7 +453,7 @@ static const char *log_request_time(request_rec *r, char *a) static const char *log_request_duration(request_rec *r, char *a) { - return ap_psprintf(r->pool, "%ld", time(NULL) - r->request_time); + return ap_psprintf(r->pool, "%ld", (long)(time(NULL) - r->request_time)); } /* These next two routines use the canonical name:port so that log diff --git a/usr.sbin/httpd/src/support/ab.c b/usr.sbin/httpd/src/support/ab.c index ef25566a871..c2f4618f44c 100644 --- a/usr.sbin/httpd/src/support/ab.c +++ b/usr.sbin/httpd/src/support/ab.c @@ -626,7 +626,7 @@ static void output_results(void) * trailing newline */ fprintf(out, "%s\t%ld\t%ld\t%ld\t%ld\t%ld\n", tmstring, - sttime, + (long)sttime, stats[i].ctime, stats[i].time - stats[i].ctime, stats[i].time, @@ -1357,14 +1357,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.14 $> apache-1.3"); + printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.15 $> apache-1.3"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("<p>\n"); - printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.14 $"); + printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.15 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n"); printf("</p>\n<p>\n"); |