summaryrefslogtreecommitdiff
path: root/lib/libc/crypt
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-09 01:08:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-09 01:08:58 +0000
commit2f44868befb3b820255d0c12c2faae04cfcd2fe7 (patch)
treeda72e56df4e4995be92ab233ba5ff6cbebd31339 /lib/libc/crypt
parent96645b36554924af429d15a6fd1421c970878795 (diff)
Clean up some -Wall flowers.
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r--lib/libc/crypt/arc4random.c5
-rw-r--r--lib/libc/crypt/bcrypt.c4
-rw-r--r--lib/libc/crypt/crypt.c4
3 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/crypt/arc4random.c b/lib/libc/crypt/arc4random.c
index 078f4eeea6d..d34de2be7da 100644
--- a/lib/libc/crypt/arc4random.c
+++ b/lib/libc/crypt/arc4random.c
@@ -1,4 +1,4 @@
-/* $Id: arc4random.c,v 1.1 1996/12/28 06:33:01 dm Exp $ */
+/* $Id: arc4random.c,v 1.2 1997/07/09 01:08:16 millert Exp $ */
/*
* Arc4 random number generator for OpenBSD.
@@ -25,8 +25,9 @@
* RC4 is a registered trademark of RSA Laboratories.
*/
-#include <stdlib.h>
#include <fcntl.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c
index 0a0cca14a10..6f78afdddfe 100644
--- a/lib/libc/crypt/bcrypt.c
+++ b/lib/libc/crypt/bcrypt.c
@@ -1,4 +1,5 @@
-/* $OpenBSD: bcrypt.c,v 1.6 1997/07/01 20:12:43 provos Exp $ */
+/* $OpenBSD: bcrypt.c,v 1.7 1997/07/09 01:08:18 millert Exp $ */
+
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
* All rights reserved.
@@ -48,6 +49,7 @@
#include <stdio.h>
#endif
+#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
diff --git a/lib/libc/crypt/crypt.c b/lib/libc/crypt/crypt.c
index caa58df4862..a3a13380231 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.10 1997/03/30 20:24:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: crypt.c,v 1.11 1997/07/09 01:08:14 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -612,7 +612,7 @@ crypt(key, setting)
*/
q = (u_char *) keybuf;
while ((q - (u_char *) keybuf) < sizeof(keybuf)) {
- if (*q++ = *key << 1)
+ if ((*q++ = *key << 1))
key++;
}
if (des_setkey((u_char *) keybuf))