freebsd-ports/net/widentd/files/patch-widentd.c
Tijl Coosemans 74ba11be5b Fix build with clang and -Wmissing-variable-declarations by moving the
variables into main.

PR:		ports/182117
Submitted by:	Dirk-Willem van Gulik <dirkx@webweaving.org> (maintainer)
2013-10-19 14:13:27 +00:00

22 lines
574 B
C

--- widentd.c.orig
+++ widentd.c
@@ -41,9 +41,6 @@
#define SERVICE ("ident") /* 113 */
-int verbose = 0;
-const char *user = UID;
-const char *os = OS;
static void
usage(void)
@@ -64,6 +61,9 @@ main(int argc, char **argv)
fd_set *lst = malloc(FD_SETSIZE), *xst = malloc(FD_SETSIZE),
*wst = malloc(FD_SETSIZE);
struct addrinfo *ports, *p;
+ int verbose = 0;
+ const char *user = UID;
+ const char *os = OS;
const char * node = NULL, * service = SERVICE;
struct addrinfo hints;
int s = -1;