diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-08-19 23:21:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-08-19 23:21:25 +0000 |
commit | 962a842f643134b25022f72ad97b843da7aa8324 (patch) | |
tree | c4e80117679e236c9315cefbed9adc6cae5df4d1 | |
parent | 36e1e2eab7e69f88e80c47ed4f7d66c45ca23db9 (diff) |
decls before code
-rw-r--r-- | usr.sbin/tftp-proxy/tftp-proxy.c | 7 |
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); |