Index: head/net/echoping/files/patch-echoping.c =================================================================== --- head/net/echoping/files/patch-echoping.c (nonexistent) +++ head/net/echoping/files/patch-echoping.c (revision 545509) @@ -0,0 +1,25 @@ +--- echoping.c.orig 2020-08-20 15:47:00 UTC ++++ echoping.c +@@ -38,6 +38,22 @@ struct result results[MAX_ITERATIONS]; + struct timeval good_results[MAX_ITERATIONS]; + extern int tvcmp(); + ++boolean timeout_flag; ++static char *server; ++#ifdef LIBIDN ++static char *locale_server, *ace_server, *utf8_server; ++#endif ++ ++static init_f plugin_init; ++static start_f plugin_start; ++static start_raw_f plugin_raw_start; ++static execute_f plugin_execute; ++static execute_f plugin_execute; ++static terminate_f plugin_terminate; ++ ++struct timeval null_timeval; ++static struct timeval max_timeval; ++ + int + main(argc, argv) + int argc; Property changes on: head/net/echoping/files/patch-echoping.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/echoping/files/patch-echoping.h =================================================================== --- head/net/echoping/files/patch-echoping.h (nonexistent) +++ head/net/echoping/files/patch-echoping.h (revision 545509) @@ -0,0 +1,45 @@ +--- echoping.h.orig 2020-08-20 15:39:43 UTC ++++ echoping.h +@@ -121,7 +121,6 @@ struct result + struct timeval timevalue; + }; + +-boolean timeout_flag; + struct echoping_struct + { + boolean udp; /* Use the UDP protocol (TCP is the default) */ +@@ -136,21 +135,15 @@ typedef struct echoping_struct echoping_options; + /* Initializes the plugin with its arguments. Returns the port name or number or NULL if the plugin wants to use the raw interface. */ + typedef char *(*init_f) (const int argc, const char **argv, + const echoping_options global_options); +-init_f plugin_init; + typedef void (*start_f) (struct addrinfo *); +-start_f plugin_start; + typedef void (*start_raw_f) (); +-start_raw_f plugin_raw_start; + typedef int (*execute_f) (); +-execute_f plugin_execute; + typedef void (*terminate_f) (); +-terminate_f plugin_terminate; + #endif + + #endif + +-struct timeval null_timeval; +-struct timeval max_timeval; ++extern struct timeval null_timeval; + + #define ECHO_TCP_PORT "echo" + #define DISCARD_TCP_PORT "discard" +@@ -172,11 +165,6 @@ struct timeval max_timeval; + #define USE_SMTP 6 + + #define CHARGENERATED " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefg"; +- +-char *server; +-#ifdef LIBIDN +-char *locale_server, *ace_server, *utf8_server; +-#endif + + /* My functions */ + Property changes on: head/net/echoping/files/patch-echoping.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/echoping/files/patch-http.c =================================================================== --- head/net/echoping/files/patch-http.c (revision 545508) +++ head/net/echoping/files/patch-http.c (revision 545509) @@ -1,11 +1,20 @@ ---- 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 */ + if (accept_redirects && reply_code >= 300 && reply_code < 400) + return 0; if (! (reply_code >= 200 && reply_code < 300) && ! ((reply_code >= 300 && reply_code < 400) && accept_redirects)) Index: head/net/echoping/files/patch-smtp.c =================================================================== --- head/net/echoping/files/patch-smtp.c (nonexistent) +++ head/net/echoping/files/patch-smtp.c (revision 545509) @@ -0,0 +1,11 @@ +--- smtp.c.orig 2019-12-29 10:14:41 UTC ++++ smtp.c +@@ -8,7 +8,7 @@ + + #ifdef SMTP + +-char big_recvline[MAXTOREAD]; ++static char big_recvline[MAXTOREAD]; + + int + smtp_read_response_from_server(FILE * fs) Property changes on: head/net/echoping/files/patch-smtp.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property