summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tftp-proxy
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-08-19 23:21:24 +0000
committerderaadt <deraadt@openbsd.org>2012-08-19 23:21:24 +0000
commit8f072f6e1add92c4ca04c87c9fff9d1fa3152b3b (patch)
treec2a4bb9ad9360a9eb5c725b4bf79a6c64ee2ceb7 /usr.sbin/tftp-proxy
parentdocument some more disabled tests. (diff)
downloadwireguard-openbsd-8f072f6e1add92c4ca04c87c9fff9d1fa3152b3b.tar.xz
wireguard-openbsd-8f072f6e1add92c4ca04c87c9fff9d1fa3152b3b.zip
decls before code
Diffstat (limited to 'usr.sbin/tftp-proxy')
-rw-r--r--usr.sbin/tftp-proxy/tftp-proxy.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/tftp-proxy/tftp-proxy.c b/usr.sbin/tftp-proxy/tftp-proxy.c
index 4fb3eb568e1..9b0409e375d 100644
--- a/usr.sbin/tftp-proxy/tftp-proxy.c
+++ b/usr.sbin/tftp-proxy/tftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftp-proxy.c,v 1.3 2012/07/11 12:00:21 dlg Exp $
+/* $OpenBSD: tftp-proxy.c,v 1.4 2012/08/19 23:21:24 deraadt Exp $
*
* Copyright (c) 2005 DLS Internet Services
* Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl>
@@ -486,8 +486,7 @@ proxy_listen(const char *addr, const char *port, int family)
struct addrinfo hints, *res, *res0;
int error;
- int s;
-
+ int s, on = 1;
int serrno;
const char *cause = NULL;
@@ -496,8 +495,6 @@ proxy_listen(const char *addr, const char *port, int family)
hints.ai_socktype = SOCK_DGRAM;
hints.ai_flags = AI_PASSIVE;
- int on = 1;
-
TAILQ_INIT(&proxy_listeners);
error = getaddrinfo(addr, port, &hints, &res0);