diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-10 23:15:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-10 23:15:44 +0000 |
commit | 29d6932d1d57cae5e936bd0fd4dbc30db93be71c (patch) | |
tree | 10983ef01693953d00e6b999cc99a5928ea4590a /lib/libc/crypt | |
parent | 0a61763bce8f6ba7e4aa80526a73b0eb9330f856 (diff) |
indentation cleanup
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r-- | lib/libc/crypt/bcrypt.c | 4 | ||||
-rw-r--r-- | lib/libc/crypt/crypt.c | 15 |
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c index bea35e789af..9e55110dd64 100644 --- a/lib/libc/crypt/bcrypt.c +++ b/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.9 1997/07/25 20:29:59 mickey Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.10 1997/09/10 23:15:42 deraadt Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> @@ -218,7 +218,7 @@ bcrypt(key, salt) /* Check for minor versions */ if (salt[1] != '$') { - switch(salt[1]) { + switch (salt[1]) { case 'a': /* 'ab' should not yield the same as 'abab' */ minor = salt[1]; diff --git a/lib/libc/crypt/crypt.c b/lib/libc/crypt/crypt.c index a3a13380231..3dce745d5db 100644 --- a/lib/libc/crypt/crypt.c +++ b/lib/libc/crypt/crypt.c @@ -50,7 +50,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: crypt.c,v 1.11 1997/07/09 01:08:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: crypt.c,v 1.12 1997/09/10 23:15:43 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -595,13 +595,14 @@ crypt(key, setting) extern char *md5crypt __P((const char *, const char *)); extern char *bcrypt __P((const char *, const char *)); - if( setting[0] == '$' ) - switch(setting[1]) { - case '1': - return (md5crypt(key, setting)); - default: - return bcrypt(key, setting); + if (setting[0] == '$') { + switch (setting[1]) { + case '1': + return (md5crypt(key, setting)); + default: + return bcrypt(key, setting); } + } if (!des_initialised) des_init(); |