diff options
author | 1997-07-09 01:08:14 +0000 | |
---|---|---|
committer | 1997-07-09 01:08:14 +0000 | |
commit | 58720cefabfdfa87eea4aa3b9f9187c6b282ab9f (patch) | |
tree | f182293e2f80c91fed9603a2876cad00234e937b /lib/libc/crypt | |
parent | #include <netgroup.h> (diff) | |
download | wireguard-openbsd-58720cefabfdfa87eea4aa3b9f9187c6b282ab9f.tar.xz wireguard-openbsd-58720cefabfdfa87eea4aa3b9f9187c6b282ab9f.zip |
Clean up some -Wall flowers.
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r-- | lib/libc/crypt/arc4random.c | 5 | ||||
-rw-r--r-- | lib/libc/crypt/bcrypt.c | 4 | ||||
-rw-r--r-- | lib/libc/crypt/crypt.c | 4 |
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)) |