summaryrefslogtreecommitdiff
path: root/sys/netinet/if_atm.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-05-19 12:25:13 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-05-19 12:25:13 +0000
commite62cea05f544099a9d7a5da4952331700c477c96 (patch)
treec4640886f2c7ef88dcca3ca6c7df9f2514d1d5f5 /sys/netinet/if_atm.c
parent20551bfa1bcfebfe45c33d8ae8be7f63e6b3ef0d (diff)
Unbreak builds for kernels that have atm interfaces. Found the hard way by
Theo on an alpha ramdisk. OK deraadt@
Diffstat (limited to 'sys/netinet/if_atm.c')
-rw-r--r--sys/netinet/if_atm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c
index ac78fda8ca2..190c905f999 100644
--- a/sys/netinet/if_atm.c
+++ b/sys/netinet/if_atm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atm.c,v 1.14 2008/05/09 15:48:59 claudio Exp $ */
+/* $OpenBSD: if_atm.c,v 1.15 2008/05/19 12:25:12 claudio Exp $ */
/*
*
@@ -83,7 +83,7 @@ atm_rtrequest(req, rt, info)
{
struct sockaddr *gate = rt->rt_gateway;
struct atm_pseudoioctl api;
- struct rt_addrinfo info;
+ struct rt_addrinfo rtinfo;
#ifdef NATM
struct sockaddr_in *sin;
struct natmpcb *npcb = NULL;
@@ -174,12 +174,12 @@ failed:
rt->rt_flags &= ~RTF_LLINFO;
}
#endif
- bzero(&info, sizeof(info));
- info.rti_flags = rt->rt_flags;
- info.rti_info[RTAX_DST] = rt_key(rt);
- info.rti_info[RTAX_NETMASK] = rt_mask(rt);
+ bzero(&rtinfo, sizeof(rtinfo));
+ rtinfo.rti_flags = rt->rt_flags;
+ rtinfo.rti_info[RTAX_DST] = rt_key(rt);
+ rtinfo.rti_info[RTAX_NETMASK] = rt_mask(rt);
- rtrequest1(RTM_DELETE, &info, rt->rt_priority, NULL, 0);
+ rtrequest1(RTM_DELETE, &rtinfo, rt->rt_priority, NULL, 0);
break;
case RTM_DELETE: