summaryrefslogtreecommitdiff
path: root/net/echoping/files/patch-http.c
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2020-08-20 09:06:14 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2020-08-20 09:06:14 +0000
commit16b5a48d6cbdd027ec8a7a1652fb3402c0636625 (patch)
treee58931760dcfa435a5ee8c054e7a24b93d75d3bc /net/echoping/files/patch-http.c
parentnet/hping3: fix build with -fno-common (clang 11 and gcc 10) (diff)
net/echoping: fix build with -fno-common (clang 11 and gcc 10)
PORTREVISION not bumped as it fixes build for FreeBSD 13. Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=545509
Diffstat (limited to 'net/echoping/files/patch-http.c')
-rw-r--r--net/echoping/files/patch-http.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/echoping/files/patch-http.c b/net/echoping/files/patch-http.c
index e5960167d865..d3cb1d14c52f 100644
--- a/net/echoping/files/patch-http.c
+++ b/net/echoping/files/patch-http.c
@@ -1,6 +1,15 @@
---- http.c.orig 2015-06-03 13:06:16 UTC
+--- http.c.orig 2019-12-29 10:14:41 UTC
+++ http.c
-@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl,
+@@ -6,7 +6,7 @@
+ #include "HTParse.h"
+
+
+-char big_recvline[MAXTOREAD];
++static char big_recvline[MAXTOREAD];
+
+ char *
+ make_http_sendline(char *url, char *host, int port, int nocache)
+@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, boolean accept
/* 204 No Content is not an error, message body is empty by definition, see RFC 2616 */
if (reply_code == 204)
return 0; /* zero bytes is correct */