freebsd-ports/www/junkbuster/files/patch-ak
Volker Stolz 8fc67d6e16 Silence warnings about gnu/regex.h on -CURRENT.
Get rid of a bunch of patch-files which can be easily replaced by a
REINPLACE_CMD invocation.

PR:             ports/65975
Suggested by:   Andrey Slusar
Approved by:    linimon (mentor)
2004-04-30 13:54:03 +00:00

20 lines
579 B
Text

--- socks4.c.orig Fri Aug 4 08:39:21 2000
+++ socks4.c Thu Apr 29 15:59:20 2004
@@ -28,6 +28,8 @@
#include "jcc.h"
+#define DEFAULT_FALLBACK_HTTP_PORT 80
+
#define SOCKS_REQUEST_GRANTED 90
#define SOCKS_REQUEST_REJECT 91
#define SOCKS_REQUEST_IDENT_FAILED 92
@@ -60,7 +62,7 @@
unsigned char sbuf[BUFSIZ];
struct socks_op *c = (struct socks_op *)cbuf;
struct socks_reply *s = (struct socks_reply *)sbuf;
- int web_server_addr;
+ int web_server_addr = DEFAULT_FALLBACK_HTTP_PORT;
int n, csiz, sfd, target_port;
int err = 0;
char *errstr, *target_host;