summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/util.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2006-07-24 11:45:45 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2006-07-24 11:45:45 +0000
commit4ecfd7b0cfb81bfa6a3c6eca068e810c9c226e9c (patch)
treeb6560965ae071667873d56225919640309769689 /sbin/isakmpd/util.c
parent3c1b5d0d99ec992fdcb5243cd845b810c0a95b51 (diff)
Style; return is not a function. hshoexer@ ok.
Diffstat (limited to 'sbin/isakmpd/util.c')
-rw-r--r--sbin/isakmpd/util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/isakmpd/util.c b/sbin/isakmpd/util.c
index d52762999c6..41442693747 100644
--- a/sbin/isakmpd/util.c
+++ b/sbin/isakmpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.61 2006/06/02 19:35:55 hshoexer Exp $ */
+/* $OpenBSD: util.c,v 1.62 2006/07/24 11:45:44 ho Exp $ */
/* $EOM: util.c,v 1.23 2000/11/23 12:22:08 niklas Exp $ */
/*
@@ -293,14 +293,14 @@ text2sockaddr(char *address, char *port, struct sockaddr **sa, sa_family_t af,
}
default:
close(fd);
- return (-1);
+ return -1;
}
rtm->rtm_addrs |= RTA_NETMASK|RTA_IFP|RTA_IFA;
rtm->rtm_msglen = sizeof(*rtm) + sizeof(*sa2);
if ((b = write(fd, buf, rtm->rtm_msglen)) < 0) {
close(fd);
- return (-1);
+ return -1;
}
pid = getpid();
@@ -308,7 +308,7 @@ text2sockaddr(char *address, char *port, struct sockaddr **sa, sa_family_t af,
while ((len = read(fd, buf, sizeof(buf))) > 0) {
if (len < sizeof(*rtm)) {
close(fd);
- return (-1);
+ return -1;
}
if (rtm->rtm_type == RTM_GET &&
@@ -316,7 +316,7 @@ text2sockaddr(char *address, char *port, struct sockaddr **sa, sa_family_t af,
rtm->rtm_seq == seq) {
if (rtm->rtm_errno) {
close(fd);
- return (-1);
+ return -1;
}
break;
}
@@ -327,12 +327,12 @@ text2sockaddr(char *address, char *port, struct sockaddr **sa, sa_family_t af,
(RTA_DST|RTA_GATEWAY)) {
np = if_indextoname(rtm->rtm_index, ifname);
if (np == NULL)
- return (-1);
+ return -1;
}
}
if (getifaddrs(&ifap) != 0)
- return (-1);
+ return -1;
switch (af) {
default: