diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-11-01 03:12:15 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-11-01 03:12:15 +0000 |
commit | 901f9a7ad8984911e36db6daaf51b2249132c968 (patch) | |
tree | 55da55d5f745eaf24a5e79b605c54edede2cc4be /sbin/ipsecctl | |
parent | 037e3c4e84775802702128873f541a1042e02edc (diff) |
KNF unrelated to previous commit.
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ike.c | 8 | ||||
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c index df5bf79f86f..c04104d6c07 100644 --- a/sbin/ipsecctl/ike.c +++ b/sbin/ipsecctl/ike.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike.c,v 1.51 2006/11/01 03:10:02 mcbride Exp $ */ +/* $OpenBSD: ike.c,v 1.52 2006/11/01 03:12:14 mcbride Exp $ */ /* * Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -553,8 +553,10 @@ ike_section_p2ids(u_int8_t proto, struct ipsec_addr_wrap *src, dst->name); } if (proto) { - fprintf(fd, SET "[lid-%s]:Protocol=%d force\n", src->name, proto); - fprintf(fd, SET "[rid-%s]:Protocol=%d force\n", dst->name, proto); + fprintf(fd, SET "[lid-%s]:Protocol=%d force\n", + src->name, proto); + fprintf(fd, SET "[rid-%s]:Protocol=%d force\n", + dst->name, proto); } if (sport) fprintf(fd, SET "[lid-%s]:Port=%d force\n", src->name, diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c index a4139b4f115..a2ac727ff6b 100644 --- a/sbin/ipsecctl/ipsecctl.c +++ b/sbin/ipsecctl/ipsecctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.c,v 1.61 2006/11/01 03:10:02 mcbride Exp $ */ +/* $OpenBSD: ipsecctl.c,v 1.62 2006/11/01 03:12:14 mcbride Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -87,7 +87,7 @@ int sacompare(const void *va, const void *vb) { const struct sad *a = va, *b = vb; - + if (a->sad_spi < b->sad_spi) return (-1); if (a->sad_spi > b->sad_spi) |