From 95e52c151fd0b81ac0b64cedfc5f28de42f0ae3b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 4 Sep 2011 04:29:40 +0000 Subject: [PATCH] declarations before code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25135 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/apputils/net-server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/apputils/net-server.c b/src/lib/apputils/net-server.c index 9f53c76e6..542aa5c0e 100644 --- a/src/lib/apputils/net-server.c +++ b/src/lib/apputils/net-server.c @@ -1245,13 +1245,14 @@ loop_setup_routing_socket(verto_ctx *ctx, void *handle, const char *progname) { #ifdef HAVE_STRUCT_RT_MSGHDR struct socksetup data; + int sock; data.ctx = ctx; data.handle = handle; data.prog = progname; data.retval = 0; - int sock = socket(PF_ROUTE, SOCK_RAW, 0); + sock = socket(PF_ROUTE, SOCK_RAW, 0); if (sock < 0) { int e = errno; krb5_klog_syslog(LOG_INFO, _("couldn't set up routing socket: %s"), -- 2.26.2