summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/rarp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-01 17:00:26 +0000
committerderaadt <deraadt@openbsd.org>2003-06-01 17:00:26 +0000
commit1ee9984c4f4397b4e37dd231ed72dcab53ea0dff (patch)
treeeac83456bbe224ca5a01b23024644072301555e9 /sys/lib/libsa/rarp.c
parentsync (diff)
downloadwireguard-openbsd-1ee9984c4f4397b4e37dd231ed72dcab53ea0dff.tar.xz
wireguard-openbsd-1ee9984c4f4397b4e37dd231ed72dcab53ea0dff.zip
strcpy/strcat/sprintf removal in all bootblocks. various testing by
various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
Diffstat (limited to 'sys/lib/libsa/rarp.c')
-rw-r--r--sys/lib/libsa/rarp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/lib/libsa/rarp.c b/sys/lib/libsa/rarp.c
index e022239e958..225f6e96e54 100644
--- a/sys/lib/libsa/rarp.c
+++ b/sys/lib/libsa/rarp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rarp.c,v 1.8 2002/03/14 03:16:10 millert Exp $ */
+/* $OpenBSD: rarp.c,v 1.9 2003/06/01 17:00:33 deraadt Exp $ */
/* $NetBSD: rarp.c,v 1.13 1996/10/13 02:29:05 christos Exp $ */
/*
@@ -67,19 +67,19 @@ rarp_getipaddress(sock)
u_char header[ETHER_SIZE];
struct {
struct ether_arp arp;
- u_char pad[18]; /* 60 - sizeof(arp) */
+ u_char pad[18]; /* 60 - sizeof(arp) */
} data;
} wbuf;
struct {
u_char header[ETHER_SIZE];
struct {
struct ether_arp arp;
- u_char pad[24]; /* extra space */
+ u_char pad[24]; /* extra space */
} data;
} rbuf;
#ifdef RARP_DEBUG
- if (debug)
+ if (debug)
printf("rarp: socket=%d\n", sock);
#endif
if (!(d = socktodesc(sock))) {
@@ -87,7 +87,7 @@ rarp_getipaddress(sock)
return (-1);
}
#ifdef RARP_DEBUG
- if (debug)
+ if (debug)
printf("rarp: d=%x\n", (u_int)d);
#endif
@@ -139,7 +139,7 @@ rarpsend(d, pkt, len)
{
#ifdef RARP_DEBUG
- if (debug)
+ if (debug)
printf("rarpsend: called\n");
#endif
@@ -162,7 +162,7 @@ rarprecv(d, pkt, len, tleft)
u_int16_t etype; /* host order */
#ifdef RARP_DEBUG
- if (debug)
+ if (debug)
printf("rarprecv: ");
#endif
@@ -216,7 +216,7 @@ rarprecv(d, pkt, len, tleft)
/* We have our answer. */
#ifdef RARP_DEBUG
- if (debug)
+ if (debug)
printf("got it\n");
#endif
return (n);