diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-03-08 14:28:45 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-03-08 14:28:45 +0000 |
commit | 1dff6dd7747a5648301b2e11940e7874ad36a371 (patch) | |
tree | d20ebd69e2eed34617d16922efac5fefac592f06 | |
parent | dccda5819c32623fed130f2fe0b9f4b3381d6c41 (diff) |
Shuffle some declarations. Both more style(9)'ish and make future diff
smaller.
-rw-r--r-- | sbin/dhclient/dhclient.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 2baafc37de6..ae46182b9a2 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.400 2017/03/08 14:19:00 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.401 2017/03/08 14:28:44 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -234,18 +234,18 @@ get_ifa(char *cp, int n) void routehandler(struct interface_info *ifi) { - struct client_state *client = ifi->client; char ntoabuf[INET_ADDRSTRLEN]; struct in_addr a, b; - ssize_t n; - int linkstat, rslt; + struct sockaddr *sa; + struct ifa_msghdr *ifam; + struct client_state *client = ifi->client; struct ether_addr hw; struct rt_msghdr *rtm; struct if_msghdr *ifm; - struct ifa_msghdr *ifam; struct if_announcemsghdr *ifan; - struct sockaddr *sa; char *errmsg, *rtmmsg; + ssize_t n; + int linkstat, rslt; rtmmsg = calloc(1, 2048); if (rtmmsg == NULL) |