From 5daeee95dc8d63b81211b9dd47dddfac8fe6092e Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 9 Jul 1997 01:08:18 +0000 Subject: [PATCH] Clean up some -Wall flowers. --- src/lib/libc/crypt/arc4random.c | 5 +++-- src/lib/libc/crypt/bcrypt.c | 4 +++- 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 078f4eee..d34de2be 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/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 #include +#include +#include #include #include diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c index 0a0cca14..6f78afdd 100644 --- a/src/lib/libc/crypt/bcrypt.c +++ b/src/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 * All rights reserved. @@ -48,6 +49,7 @@ #include #endif +#include #include #include #include diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index caa58df4..a3a13380 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/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 @@ -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))