diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-18 19:23:30 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-18 19:23:30 +0000 |
commit | 055d56d65e6cfd4ecb1b3ce7a9dfe39aa96406ec (patch) | |
tree | dbb252721f4f18c2edebadb5f865a64e83ce601b /bin | |
parent | bb66306f2980d3b189c751cc5069a4303e38cabe (diff) |
(foo *)0 -> NULL
Diffstat (limited to 'bin')
-rw-r--r-- | bin/date/netdate.c | 6 | ||||
-rw-r--r-- | bin/ed/cbc.c | 6 | ||||
-rw-r--r-- | bin/mt/mtrmt.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/bin/date/netdate.c b/bin/date/netdate.c index b4190ce4f0f..4ef012bab88 100644 --- a/bin/date/netdate.c +++ b/bin/date/netdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netdate.c,v 1.7 1997/06/11 17:15:25 deraadt Exp $ */ +/* $OpenBSD: netdate.c,v 1.8 1997/06/18 19:21:39 kstailey Exp $ */ /* $NetBSD: netdate.c,v 1.10 1995/09/07 06:21:06 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)netdate.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: netdate.c,v 1.7 1997/06/11 17:15:25 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: netdate.c,v 1.8 1997/06/18 19:21:39 kstailey Exp $"; #endif #endif /* not lint */ @@ -144,7 +144,7 @@ loop: memset(fdsp, 0, fdsn); FD_SET(s, fdsp); - found = select(s+1, fdsp, (fd_set *)0, (fd_set *)0, &tout); + found = select(s+1, fdsp, NULL, NULL, &tout); length = sizeof(error); if (!getsockopt(s, 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 diff --git a/bin/mt/mtrmt.c b/bin/mt/mtrmt.c index 26f68ae64df..81c3cdd6cd1 100644 --- a/bin/mt/mtrmt.c +++ b/bin/mt/mtrmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtrmt.c,v 1.5 1996/09/15 20:14:18 millert Exp $ */ +/* $OpenBSD: mtrmt.c,v 1.6 1997/06/18 19:23:29 kstailey Exp $ */ /* $NetBSD: mtrmt.c,v 1.2 1996/03/06 06:22:07 scottr Exp $ */ /*- @@ -144,7 +144,7 @@ rmtgetconn() tuser = pwd->pw_name; rmtape = rcmd(&rmtpeer, (u_short)sp->s_port, pwd->pw_name, tuser, - _PATH_RMT, (int *)0); + _PATH_RMT, NULL); if (rmtape == -1) exit(1); /* rcmd already printed error message */ |