summaryrefslogtreecommitdiffstats
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-07-20 18:21:11 +0000
committerbluhm <bluhm@openbsd.org>2013-07-20 18:21:11 +0000
commita80d0aeb845d0b839d863e764c7d8589f85a8503 (patch)
tree44bc524db63aca6a141dfc772254d35d3607892d /usr.sbin/arp/arp.c
parent1. there's no "selectors function" (diff)
downloadwireguard-openbsd-a80d0aeb845d0b839d863e764c7d8589f85a8503.tar.xz
wireguard-openbsd-a80d0aeb845d0b839d863e764c7d8589f85a8503.zip
arp and rarpd used an int expire_time for time calculation. Convert
this into time_t. OK benno@
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 56b8390f954..8def2a88c97 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.52 2013/03/21 04:43:17 deraadt Exp $ */
+/* $OpenBSD: arp.c,v 1.53 2013/07/20 18:21:11 bluhm Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -248,8 +248,8 @@ getsocket(void)
struct sockaddr_in so_mask = { 8, 0, 0, { 0xffffffff } };
struct sockaddr_inarp blank_sin = { sizeof(blank_sin), AF_INET }, sin_m;
struct sockaddr_dl blank_sdl = { sizeof(blank_sdl), AF_LINK }, sdl_m;
-int expire_time, flags, export_only, doing_proxy,
- found_entry;
+time_t expire_time;
+int flags, export_only, doing_proxy, found_entry;
struct {
struct rt_msghdr m_rtm;
char m_space[512];
@@ -282,7 +282,8 @@ set(int argc, char *argv[])
errx(1, "invalid ethernet address: %s", eaddr);
memcpy(LLADDR(&sdl_m), ea, sizeof(*ea));
sdl_m.sdl_alen = 6;
- doing_proxy = flags = export_only = expire_time = 0;
+ expire_time = 0;
+ doing_proxy = flags = export_only = 0;
while (argc-- > 0) {
if (strncmp(argv[0], "temp", 4) == 0) {
struct timeval time;