summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-13 03:12:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-13 03:12:24 +0000
commit529b7f083fdeab077cb44db8f38f1888ef3fdd68 (patch)
tree86bbd63ee09fa551e101f62942964613a9661a2b
parent752a45b26703d6bcb9d88f8173c5687ff458347a (diff)
indent
-rw-r--r--usr.sbin/rarpd/arptab.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.sbin/rarpd/arptab.c b/usr.sbin/rarpd/arptab.c
index 7757814f269..976b41d1380 100644
--- a/usr.sbin/rarpd/arptab.c
+++ b/usr.sbin/rarpd/arptab.c
@@ -75,7 +75,9 @@ extern int errno;
static int pid;
static int s = -1;
-getsocket() {
+void
+getsocket()
+{
if (s < 0) {
s = socket(PF_ROUTE, SOCK_RAW, 0);
if (s < 0) {
@@ -133,11 +135,13 @@ tryagain:
goto overwrite;
}
if (doing_proxy == 0) {
- syslog(LOG_ERR, "arptab_set: can only proxy for %s\n", inet_ntoa(sin->sin_addr));
+ syslog(LOG_ERR, "arptab_set: can only proxy for %s\n",
+ inet_ntoa(sin->sin_addr));
return (1);
}
if (sin_m.sin_other & SIN_PROXY) {
- syslog(LOG_ERR,"arptab_set: proxy entry exists for non 802 device\n");
+ syslog(LOG_ERR,
+ "arptab_set: proxy entry exists for non 802 device\n");
return(1);
}
sin_m.sin_other = SIN_PROXY;
@@ -146,7 +150,9 @@ tryagain:
}
overwrite:
if (sdl->sdl_family != AF_LINK) {
- syslog(LOG_ERR,"arptab_set: cannot intuit interface index and type for %s\n", inet_ntoa(sin->sin_addr));
+ syslog(LOG_ERR,
+ "arptab_set: cannot intuit interface index and type for %s\n",
+ inet_ntoa(sin->sin_addr));
return (1);
}
sdl_m.sdl_type = sdl->sdl_type;