diff options
author | 2017-07-11 23:27:13 +0000 | |
---|---|---|
committer | 2017-07-11 23:27:13 +0000 | |
commit | c5c473cb45456223cdb06cd305ebf46ff063f8c0 (patch) | |
tree | c0e0e5993c9fe34b6063809d13e91e40cb74b4b4 /usr.bin/signify/signify.c | |
parent | Move the section about <bsd.sys.mk> up just below <sys.mk> which it is (diff) | |
download | wireguard-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.c | 8 |
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; |