freebsd-ports/security/fwtk/files/patch-http-gw_error.c
Renato Botelho 4f96abae66 - The current fwtk port will not build on FreeBSD => 5.x, this is
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
2006-06-01 15:33:32 +00:00

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)){