diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-05 10:06:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-05 10:06:14 +0000 |
commit | d909564c7bbe37a759e85c032005836550fe28bc (patch) | |
tree | 6907f270e4af83ee8e895f68397c2c33c829979f /usr.bin/ssh/compat.c | |
parent | f3d9c33b1c4673ad259f2ebfdf59a0904d4c6483 (diff) |
minor KNF
Diffstat (limited to 'usr.bin/ssh/compat.c')
-rw-r--r-- | usr.bin/ssh/compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/compat.c b/usr.bin/ssh/compat.c index d0776b4ac37..d5c2ad83402 100644 --- a/usr.bin/ssh/compat.c +++ b/usr.bin/ssh/compat.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: compat.c,v 1.53 2001/09/20 13:50:40 markus Exp $"); +RCSID("$OpenBSD: compat.c,v 1.54 2001/12/05 10:06:12 deraadt Exp $"); #include <regex.h> @@ -151,7 +151,7 @@ proto_spec(const char *spec) return ret; q = s = xstrdup(spec); for ((p = strsep(&q, SEP)); p && *p != '\0'; (p = strsep(&q, SEP))) { - switch(atoi(p)) { + switch (atoi(p)) { case 1: if (ret == SSH_PROTO_UNKNOWN) ret |= SSH_PROTO_1_PREFERRED; @@ -183,7 +183,7 @@ compat_cipher_proposal(char *cipher_prop) fix_ciphers = xmalloc(len); *fix_ciphers = '\0'; tmp = orig_prop = xstrdup(cipher_prop); - while((cp = strsep(&tmp, ",")) != NULL) { + while ((cp = strsep(&tmp, ",")) != NULL) { if (strncmp(cp, "aes", 3) && strncmp(cp, "rijndael", 8)) { if (*fix_ciphers) strlcat(fix_ciphers, ",", len); |