summaryrefslogtreecommitdiff
path: root/http-backend.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-03-06 16:40:39 +0100
committerJunio C Hamano <gitster@pobox.com>2010-03-07 00:37:35 -0800
commitebaa79f462c48e0ed0341d9c8f9c97de557afcfd (patch)
treef3657097f459f1446ec6dce275aeac8101261f50 /http-backend.c
parent1d8cd418b49f08146d6d47cf8881965f922686cb (diff)
downloadgit-ebaa79f462c48e0ed0341d9c8f9c97de557afcfd.tar.gz
Make report() from usage.c public as vreportf() and use it.
There exist already a number of static functions named 'report', therefore, the function name was changed. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-backend.c')
-rw-r--r--http-backend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/http-backend.c b/http-backend.c
index 345c12b790..8c7b7d09ea 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -538,14 +538,11 @@ static void service_rpc(char *service_name)
static NORETURN void die_webcgi(const char *err, va_list params)
{
- char buffer[1000];
-
http_status(500, "Internal Server Error");
hdr_nocache();
end_headers();
- vsnprintf(buffer, sizeof(buffer), err, params);
- fprintf(stderr, "fatal: %s\n", buffer);
+ vreportf("fatal: ", err, params);
exit(0);
}