Browse Source

indentation cleanup

OPENBSD_2_2
deraadt 27 years ago
parent
commit
36b350c2d4
2 changed files with 10 additions and 9 deletions
  1. +2
    -2
      src/lib/libc/crypt/bcrypt.c
  2. +8
    -7
      src/lib/libc/crypt/crypt.c

+ 2
- 2
src/lib/libc/crypt/bcrypt.c View File

@ -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];


+ 8
- 7
src/lib/libc/crypt/crypt.c View File

@ -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();


Loading…
Cancel
Save