From 07ee9f80d73118450375bd991c5cabb8c85bd7a2 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Tue, 12 Apr 2016 18:18:26 +0000 Subject: bootpd(8): De-register and minor cleanups. For bootptest(8) also remuve an unused variable and replace 0 with a NULL for a pointer. --- libexec/bootpd/rtmsg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libexec/bootpd/rtmsg.c') diff --git a/libexec/bootpd/rtmsg.c b/libexec/bootpd/rtmsg.c index 09886fd217f2a..a3dbb8e06805e 100644 --- a/libexec/bootpd/rtmsg.c +++ b/libexec/bootpd/rtmsg.c @@ -118,9 +118,9 @@ int bsd_arp_set(ia, eaddr, len) char *eaddr; int len; { - register struct sockaddr_in *sin = &sin_m; - register struct sockaddr_dl *sdl; - register struct rt_msghdr *rtm = &(m_rtmsg.m_rtm); + struct sockaddr_in *sin = &sin_m; + struct sockaddr_dl *sdl; + struct rt_msghdr *rtm = &(m_rtmsg.m_rtm); u_char *ea; struct timespec tp; int op = RTM_ADD; @@ -179,9 +179,9 @@ static int rtmsg(cmd) { static int seq; int rlen; - register struct rt_msghdr *rtm = &m_rtmsg.m_rtm; - register char *cp = m_rtmsg.m_space; - register int l; + struct rt_msghdr *rtm = &m_rtmsg.m_rtm; + char *cp = m_rtmsg.m_space; + int l; errno = 0; bzero((char *)&m_rtmsg, sizeof(m_rtmsg)); -- cgit v1.3