summaryrefslogtreecommitdiffstats
path: root/usr.bin/signify/signify.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2017-07-11 23:27:13 +0000
committertedu <tedu@openbsd.org>2017-07-11 23:27:13 +0000
commitc5c473cb45456223cdb06cd305ebf46ff063f8c0 (patch)
treec0e0e5993c9fe34b6063809d13e91e40cb74b4b4 /usr.bin/signify/signify.c
parentMove the section about <bsd.sys.mk> up just below <sys.mk> which it is (diff)
downloadwireguard-openbsd-c5c473cb45456223cdb06cd305ebf46ff063f8c0.tar.xz
wireguard-openbsd-c5c473cb45456223cdb06cd305ebf46ff063f8c0.zip
fix style compliance, in the keyname compliance function no less
Diffstat (limited to 'usr.bin/signify/signify.c')
-rw-r--r--usr.bin/signify/signify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index 5a42802925e..b5868967c94 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.127 2017/04/18 02:20:50 deraadt Exp $ */
+/* $OpenBSD: signify.c,v 1.128 2017/07/11 23:27:13 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -346,13 +346,13 @@ static const char *
check_keyname_compliance(const char *pubkeyfile, const char *seckeyfile)
{
const char *pos;
+ size_t len;
/* basename may or may not modify input */
pos = strrchr(seckeyfile, '/');
if (pos != NULL)
- seckeyfile = pos+1;
+ seckeyfile = pos + 1;
- size_t len;
len = strlen(seckeyfile);
if (len < 5) /* ?.key */
goto bad;
@@ -361,7 +361,7 @@ check_keyname_compliance(const char *pubkeyfile, const char *seckeyfile)
if (pubkeyfile != NULL) {
pos = strrchr(pubkeyfile, '/');
if (pos != NULL)
- pubkeyfile = pos+1;
+ pubkeyfile = pos + 1;
if (strlen(pubkeyfile) != len)
goto bad;