summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold/rtsock.c
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-08-17 19:23:35 +0000
committerhrs <hrs@FreeBSD.org>2013-08-17 19:23:35 +0000
commita8298dcc377707c8e7f1295e9e503cad9057196e (patch)
treebedf18c1abac1c39ad63158f9651e64df8e432c2 /usr.sbin/rtsold/rtsock.c
parent06c57264bc4627b043244c3f34745e71aa626651 (diff)
downloadFreeBSD-src-a8298dcc377707c8e7f1295e9e503cad9057196e.zip
FreeBSD-src-a8298dcc377707c8e7f1295e9e503cad9057196e.tar.gz
- Remove struct ifinfo *iflist. It is no longer used.
- Suppress warnings about increase of alignment requirement.
Diffstat (limited to 'usr.sbin/rtsold/rtsock.c')
-rw-r--r--usr.sbin/rtsold/rtsock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rtsold/rtsock.c b/usr.sbin/rtsold/rtsock.c
index fe22bc7..702ffe1 100644
--- a/usr.sbin/rtsold/rtsock.c
+++ b/usr.sbin/rtsold/rtsock.c
@@ -103,7 +103,7 @@ rtsock_input(int s)
lim = msg + n;
for (next = msg; next < lim; next += len) {
- rtm = (struct rt_msghdr *)next;
+ rtm = (struct rt_msghdr *)(void *)next;
if (lim - next < lenlim)
break;
len = rtm->rtm_msglen;
@@ -138,7 +138,7 @@ static int
rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim)
{
struct if_announcemsghdr *ifan;
- struct ifinfo *ifinfo;
+ struct ifinfo *ifi;
ifan = (struct if_announcemsghdr *)rtm;
if ((char *)(ifan + 1) > lim)
@@ -158,14 +158,14 @@ rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim)
case IFAN_DEPARTURE:
warnmsg(LOG_WARNING, __func__,
"interface %s removed", ifan->ifan_name);
- ifinfo = find_ifinfo(ifan->ifan_index);
- if (ifinfo) {
+ ifi = find_ifinfo(ifan->ifan_index);
+ if (ifi) {
if (dflag > 1) {
warnmsg(LOG_INFO, __func__,
"bring interface %s to DOWN state",
ifan->ifan_name);
}
- ifinfo->state = IFS_DOWN;
+ ifi->state = IFS_DOWN;
}
break;
}
OpenPOWER on IntegriCloud