summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-18 19:23:30 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-18 19:23:30 +0000
commit055d56d65e6cfd4ecb1b3ce7a9dfe39aa96406ec (patch)
treedbb252721f4f18c2edebadb5f865a64e83ce601b /bin/ed
parentbb66306f2980d3b189c751cc5069a4303e38cabe (diff)
(foo *)0 -> NULL
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/cbc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c
index 3eb9efbcf89..10e6b2229d9 100644
--- a/bin/ed/cbc.c
+++ b/bin/ed/cbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cbc.c,v 1.4 1996/10/12 19:38:31 millert Exp $ */
+/* $OpenBSD: cbc.c,v 1.5 1997/06/18 19:22:35 kstailey Exp $ */
/* $NetBSD: cbc.c,v 1.9 1995/03/21 09:04:36 cgd Exp $ */
/* cbc.c: This file contains the encryption routines for the ed line editor */
@@ -44,7 +44,7 @@
#if 0
static char *rcsid = "@(#)cbc.c,v 1.2 1994/02/01 00:34:36 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: cbc.c,v 1.4 1996/10/12 19:38:31 millert Exp $";
+static char rcsid[] = "$OpenBSD: cbc.c,v 1.5 1997/06/18 19:22:35 kstailey Exp $";
#endif
#endif /* not lint */
@@ -125,7 +125,7 @@ init_des_cipher()
MEMZERO(ivec, 8);
/* intialize the padding vector */
- srand((unsigned) time((time_t *) 0));
+ srand((unsigned) time(NULL));
for (i = 0; i < 8; i++)
CHAR(pvec, i) = (char) (rand()/RAND_DIV);
#endif