diff options
author | millert <> | 1997-07-09 01:08:53 +0000 |
---|---|---|
committer | millert <> | 1997-07-09 01:08:53 +0000 |
commit | 876d3a1be4aa406672cc674a171f26878319d505 (patch) | |
tree | 72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/crypt | |
parent | fd3592b18f24103bfc82412a8950e5f06e549ff1 (diff) | |
download | openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2 openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip |
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r-- | src/lib/libc/crypt/arc4random.c | 5 | ||||
-rw-r--r-- | src/lib/libc/crypt/bcrypt.c | 4 | ||||
-rw-r--r-- | src/lib/libc/crypt/crypt.c | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 078f4eeea6..d34de2be7d 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: arc4random.c,v 1.1 1996/12/28 06:33:01 dm Exp $ */ | 1 | /* $Id: arc4random.c,v 1.2 1997/07/09 01:08:16 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Arc4 random number generator for OpenBSD. | 4 | * Arc4 random number generator for OpenBSD. |
@@ -25,8 +25,9 @@ | |||
25 | * RC4 is a registered trademark of RSA Laboratories. | 25 | * RC4 is a registered trademark of RSA Laboratories. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include <stdlib.h> | ||
29 | #include <fcntl.h> | 28 | #include <fcntl.h> |
29 | #include <stdlib.h> | ||
30 | #include <unistd.h> | ||
30 | #include <sys/types.h> | 31 | #include <sys/types.h> |
31 | #include <sys/time.h> | 32 | #include <sys/time.h> |
32 | 33 | ||
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index 0a0cca14a1..6f78afdddf 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/lib/libc/crypt/bcrypt.c | |||
@@ -1,4 +1,5 @@ | |||
1 | /* $OpenBSD: bcrypt.c,v 1.6 1997/07/01 20:12:43 provos Exp $ */ | 1 | /* $OpenBSD: bcrypt.c,v 1.7 1997/07/09 01:08:18 millert Exp $ */ |
2 | |||
2 | /* | 3 | /* |
3 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 4 | * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
4 | * All rights reserved. | 5 | * All rights reserved. |
@@ -48,6 +49,7 @@ | |||
48 | #include <stdio.h> | 49 | #include <stdio.h> |
49 | #endif | 50 | #endif |
50 | 51 | ||
52 | #include <stdio.h> | ||
51 | #include <stdlib.h> | 53 | #include <stdlib.h> |
52 | #include <sys/types.h> | 54 | #include <sys/types.h> |
53 | #include <string.h> | 55 | #include <string.h> |
diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index caa58df486..a3a1338023 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c | |||
@@ -50,7 +50,7 @@ | |||
50 | */ | 50 | */ |
51 | 51 | ||
52 | #if defined(LIBC_SCCS) && !defined(lint) | 52 | #if defined(LIBC_SCCS) && !defined(lint) |
53 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.10 1997/03/30 20:24:46 deraadt Exp $"; | 53 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.11 1997/07/09 01:08:14 millert Exp $"; |
54 | #endif /* LIBC_SCCS and not lint */ | 54 | #endif /* LIBC_SCCS and not lint */ |
55 | 55 | ||
56 | #include <sys/types.h> | 56 | #include <sys/types.h> |
@@ -612,7 +612,7 @@ crypt(key, setting) | |||
612 | */ | 612 | */ |
613 | q = (u_char *) keybuf; | 613 | q = (u_char *) keybuf; |
614 | while ((q - (u_char *) keybuf) < sizeof(keybuf)) { | 614 | while ((q - (u_char *) keybuf) < sizeof(keybuf)) { |
615 | if (*q++ = *key << 1) | 615 | if ((*q++ = *key << 1)) |
616 | key++; | 616 | key++; |
617 | } | 617 | } |
618 | if (des_setkey((u_char *) keybuf)) | 618 | if (des_setkey((u_char *) keybuf)) |