diff options
author | 2017-07-26 16:53:22 +0000 | |
---|---|---|
committer | 2017-07-26 16:53:22 +0000 | |
commit | 051a13a280880b53fc1af540d9f6692e986fc8be (patch) | |
tree | 920b26ad13010828a1c23ed0c7e90ab28268e1ae | |
parent | Always reset the alerts timer so it works even if activity and silence (diff) | |
download | wireguard-openbsd-051a13a280880b53fc1af540d9f6692e986fc8be.tar.xz wireguard-openbsd-051a13a280880b53fc1af540d9f6692e986fc8be.zip |
Local declaration beautification.
-rw-r--r-- | sbin/dhclient/dhclient.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index f3db52e4646..e4403c0b2d7 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.484 2017/07/26 14:11:25 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.485 2017/07/26 16:53:22 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -211,7 +211,7 @@ get_ifa_family(char *cp, int n) void interface_link_forceup(char *name, int ioctlfd) { - struct ifreq ifr; + struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); @@ -233,8 +233,8 @@ interface_link_forceup(char *name, int ioctlfd) int interface_status(char *name) { - struct ifaddrs *ifap, *ifa; - struct if_data *ifdata; + struct ifaddrs *ifap, *ifa; + struct if_data *ifdata; if (getifaddrs(&ifap) != 0) fatalx("getifaddrs failed"); @@ -265,10 +265,10 @@ interface_status(char *name) void get_hw_address(struct interface_info *ifi) { - struct ifaddrs *ifap, *ifa; - struct sockaddr_dl *sdl; - struct if_data *ifdata; - int found; + struct ifaddrs *ifap, *ifa; + struct sockaddr_dl *sdl; + struct if_data *ifdata; + int found; if (getifaddrs(&ifap) != 0) fatalx("getifaddrs failed"); @@ -1806,7 +1806,7 @@ append_statement(char *string, size_t sz, char *s1, char *s2) struct proposal * lease_as_proposal(struct client_lease *lease) { - struct proposal *proposal; + struct proposal *proposal; struct option_data *opt; char *buf; |