From 73e6130b57a907a09cbab0b59fe2cb4357cb4f6f Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 27 Sep 2003 15:37:43 +0000 Subject: Fix build with gcc3 (hi mrg! :) ). --- www/bozohttpd/distinfo | 4 ++-- www/bozohttpd/patches/patch-aa | 26 ++++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) (limited to 'www') diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo index 32ea3e8e3c8..50af909128a 100644 --- a/www/bozohttpd/distinfo +++ b/www/bozohttpd/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.26 2003/09/22 08:38:17 wiz Exp $ +$NetBSD: distinfo,v 1.27 2003/09/27 15:37:43 wiz Exp $ SHA1 (bozohttpd-20030626.tar.bz2) = 9ea81e7810def0b4d587803cd7707008d5198baf Size (bozohttpd-20030626.tar.bz2) = 26831 bytes -SHA1 (patch-aa) = 2c48c5d355625cc72f78300af2013873f05c18f7 +SHA1 (patch-aa) = f9bde6f13297c3222f671867e753fb15d431ec25 diff --git a/www/bozohttpd/patches/patch-aa b/www/bozohttpd/patches/patch-aa index b524edb47d2..40c0f95b53d 100644 --- a/www/bozohttpd/patches/patch-aa +++ b/www/bozohttpd/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.8 2003/09/22 08:38:59 wiz Exp $ +$NetBSD: patch-aa,v 1.9 2003/09/27 15:37:43 wiz Exp $ ---- bozohttpd.c.orig Wed Jul 9 17:53:47 2003 +--- bozohttpd.c.orig 2003-07-09 17:53:47.000000000 +0200 +++ bozohttpd.c @@ -2092,6 +2092,9 @@ static struct content_map content_map[] { ".ice", "x-conference/x-cooltalk", "", "", NULL }, @@ -12,3 +12,25 @@ $NetBSD: patch-aa,v 1.8 2003/09/22 08:38:59 wiz Exp $ { NULL, NULL, NULL, NULL, NULL, }, }; +@@ -2332,10 +2335,10 @@ error(int code, const char *fmt, ...) + /* the follow functions and variables are used in handling HTTP errors */ + /* ARGSUSED */ + static void +-http_error(code, request, log) ++http_error(code, request, logstr) + int code; + http_req *request; +- const char *log; ++ const char *logstr; + { + static char buf[BUFSIZ]; /* static so we don't need to malloc? */ + char portbuf[20]; +@@ -2344,7 +2347,7 @@ http_error(code, request, log) + const char *proto = (request && request->hr_proto) ? request->hr_proto : http_11; + int size; + +- debug((DEBUG_FAT, "http_error %d: %s", code, log)); ++ debug((DEBUG_FAT, "http_error %d: %s", code, logstr)); + if (header == NULL || reason == NULL) + error(1, "http_error() failed (short = %p, long = %p)", + header, reason); -- cgit v1.2.3