forked from Lainports/freebsd-ports
because of the S/Key library requirements. Moved the S/Key support behind the WITH_SKEY knob and added a WITH_SNK knob as well. Now the system will build on FreeBSD 6.1 systems if WITH_SKEY is NOT set. - Change varargs.h to stdarg.h, to build with the newer version of gcc. - Pass the maintainership to submitter. - Bump PORTREVISION PR: ports/97633 Submitted by: pirzyk
24 lines
537 B
C
24 lines
537 B
C
--- http-gw/error.c.orig Tue Jan 13 20:21:28 1998
|
|
+++ http-gw/error.c Sun May 21 22:09:19 2006
|
|
@@ -174,11 +174,7 @@
|
|
return 0;
|
|
}
|
|
|
|
-int go_error(sockfd, errorno, msg, va_alist)
|
|
-int sockfd;
|
|
-int errorno;
|
|
-char *msg;
|
|
-va_dcl
|
|
+int go_error(int sockfd, int errorno, char *msg, ...)
|
|
{ static int last_errno = 0;
|
|
va_list marker;
|
|
|
|
@@ -192,7 +188,7 @@
|
|
}
|
|
}
|
|
if( msg != NULL){
|
|
- va_start(marker);
|
|
+ va_start(marker, msg);
|
|
vsprintf(errbuf, msg, marker);
|
|
va_end(marker);
|
|
if( (rem_type & (TYPE_HTTP|TYPE_DIR)) == (TYPE_DIR)){
|