Browse Source

Clean up some -Wall flowers.

OPENBSD_2_2
millert 27 years ago
parent
commit
5daeee95dc
3 changed files with 8 additions and 5 deletions
  1. +3
    -2
      src/lib/libc/crypt/arc4random.c
  2. +3
    -1
      src/lib/libc/crypt/bcrypt.c
  3. +2
    -2
      src/lib/libc/crypt/crypt.c

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

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


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

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


+ 2
- 2
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.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))


Loading…
Cancel
Save