summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-25 18:07:58 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-25 18:07:58 +0000
commiteabadd96930ebc67ee537b05f194a3c47f2d4333 (patch)
tree7b7276c796c095da1df864fa8fec5ebacb97b9e8
parentd02ac94d56425c128f50daed5dcee2a8d59af66f (diff)
(foo *)0 -> NULL
-rw-r--r--sbin/dump/dumprmt.c4
-rw-r--r--sbin/dump/optr.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c
index 2c441e12328..c769cde2bb1 100644
--- a/sbin/dump/dumprmt.c
+++ b/sbin/dump/dumprmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumprmt.c,v 1.6 1996/09/15 20:14:08 millert Exp $ */
+/* $OpenBSD: dumprmt.c,v 1.7 1997/06/25 18:07:55 kstailey Exp $ */
/* $NetBSD: dumprmt.c,v 1.10 1996/03/15 22:39:26 scottr Exp $ */
/*-
@@ -147,7 +147,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);
size = ntrec * TP_BSIZE;
if (size > 60 * 1024) /* XXX */
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index 07fc2cffa05..2c63f065d33 100644
--- a/sbin/dump/optr.c
+++ b/sbin/dump/optr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: optr.c,v 1.12 1996/10/12 01:24:15 deraadt Exp $ */
+/* $OpenBSD: optr.c,v 1.13 1997/06/25 18:07:57 kstailey Exp $ */
/* $NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
-static char rcsid[] = "$OpenBSD: optr.c,v 1.12 1996/10/12 01:24:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: optr.c,v 1.13 1997/06/25 18:07:57 kstailey Exp $";
#endif
#endif /* not lint */
@@ -95,7 +95,7 @@ query(question)
FILE *mytty;
time_t firstprompt, when_answered;
- firstprompt = time((time_t *)0);
+ firstprompt = time(NULL);
if ((mytty = fopen(_PATH_TTY, "r")) == NULL)
quit("fopen on %s fails: %s\n", _PATH_TTY, strerror(errno));
@@ -128,7 +128,7 @@ query(question)
if (signal(SIGALRM, sig) == SIG_IGN)
signal(SIGALRM, SIG_IGN);
(void) fclose(mytty);
- when_answered = time((time_t *)0);
+ when_answered = time(NULL);
/*
* Adjust the base for time estimates to ignore time we spent waiting
* for operator input.