summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt/crypt.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-09-10 23:15:42 +0000
committerderaadt <deraadt@openbsd.org>1997-09-10 23:15:42 +0000
commit8f9b423b7c10e2d6b2b5b965b0804073cf23bebb (patch)
tree6cf5041b9f70f210184f330113f20a65c559a194 /lib/libc/crypt/crypt.c
parentBuild a small version of ftp for alpha install floppy, shave a few bytes. (diff)
downloadwireguard-openbsd-8f9b423b7c10e2d6b2b5b965b0804073cf23bebb.tar.xz
wireguard-openbsd-8f9b423b7c10e2d6b2b5b965b0804073cf23bebb.zip
indentation cleanup
Diffstat (limited to 'lib/libc/crypt/crypt.c')
-rw-r--r--lib/libc/crypt/crypt.c15
1 files changed, 8 insertions, 7 deletions
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();