summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhshoexer <hshoexer@openbsd.org>2006-09-18 13:45:45 +0000
committerhshoexer <hshoexer@openbsd.org>2006-09-18 13:45:45 +0000
commite0a144eca794fe09eb9966e8c24d98cda791fbf0 (patch)
tree3ffe98bee6215d409c195dc5c4038bde8b93a0fc
parentmacros and types for event notifications from the hardware. (diff)
downloadwireguard-openbsd-e0a144eca794fe09eb9966e8c24d98cda791fbf0.tar.xz
wireguard-openbsd-e0a144eca794fe09eb9966e8c24d98cda791fbf0.zip
KNF and clean some trailing white spaces, no binary change.
-rw-r--r--sbin/ipsecctl/ike.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index 29ec7cea9dc..e8144515525 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.49 2006/08/30 12:18:10 msf Exp $ */
+/* $OpenBSD: ike.c,v 1.50 2006/09/18 13:45:45 hshoexer Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -138,7 +138,8 @@ ike_section_ids(struct ipsec_addr_wrap *peer, struct ipsec_auth *auth, FILE *fd,
fprintf(fd, SET "[peer-default]:ID=%s-ID force\n",
auth->srcid);
- fprintf(fd, SET "[%s-ID]:ID-type=%s force\n", auth->srcid, ike_id_types[idtype]);
+ fprintf(fd, SET "[%s-ID]:ID-type=%s force\n", auth->srcid,
+ ike_id_types[idtype]);
fprintf(fd, SET "[%s-ID]:Name=%s force\n", auth->srcid,
auth->srcid);
}
@@ -155,7 +156,8 @@ ike_section_ids(struct ipsec_addr_wrap *peer, struct ipsec_auth *auth, FILE *fd,
} else {
fprintf(fd, SET
"[peer-default]:Remote-ID=default-ID force\n");
- fprintf(fd, SET "[default-ID]:ID-type=%s force\n", ike_id_types[idtype]);
+ fprintf(fd, SET "[default-ID]:ID-type=%s force\n",
+ ike_id_types[idtype]);
fprintf(fd, SET "[default-ID]:Name=%s force\n",
auth->dstid);
}
@@ -163,8 +165,8 @@ ike_section_ids(struct ipsec_addr_wrap *peer, struct ipsec_auth *auth, FILE *fd,
}
static int
-ike_get_id_type(char *string)
-{
+ike_get_id_type(char *string)
+{
if (strchr(string, '@'))
return ID_UFQDN;
else