$NetBSD: patch-ac,v 1.2 2004/05/23 23:28:30 danw Exp $ --- cgi.c.orig Fri Aug 20 17:14:07 1999 +++ cgi.c @@ -31,7 +31,6 @@ #include #include #include -#include #include int cgiDebugLevel = 0; @@ -380,7 +379,7 @@ char **cgiGetVariables (s_cgi *parms) void cgiRedirect (const char *url) { if (url && strlen(url)) { - printf ("Content-type: text/html\nContent-length: %d\n", 77+(strlen(url)*2)); + printf ("Content-type: text/html\nContent-length: %ld\n",(long)( 77+(strlen(url)*2))); printf ("Status: 302 Temporal Relocation\n"); printf ("Location: %s\n\n", url); printf ("\n\nThe page has been moved to %s\n\n\n", url, url);