summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-25 18:06:43 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-25 18:06:43 +0000
commitd02ac94d56425c128f50daed5dcee2a8d59af66f (patch)
treeacc78cc0802ce1d0103fd310a46dff1b23d84e51 /sbin
parent7d0914d2ada0b41c406f7d0d3f663d3593481e28 (diff)
(foo *)0 -> NULL
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/disklabel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 3ca00a91f6e..42fa25abc9e 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.31 1997/05/21 16:02:33 deraadt Exp $ */
+/* $OpenBSD: disklabel.c,v 1.32 1997/06/25 18:06:42 kstailey Exp $ */
/* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: disklabel.c,v 1.31 1997/05/21 16:02:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: disklabel.c,v 1.32 1997/06/25 18:06:42 kstailey Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -253,7 +253,7 @@ main(argc, argv)
usage();
#if NUMBOOT > 0
if (installboot && argc == 3)
- makelabel(argv[2], (char *)0, &lab);
+ makelabel(argv[2], NULL, &lab);
#endif
lp = makebootarea(bootarea, &lab, f);
if (!(t = fopen(argv[1], "r")))
@@ -270,7 +270,7 @@ main(argc, argv)
case WRITE:
if (argc < 2 || argc > 3)
usage();
- makelabel(argv[1], argc == 3 ? argv[2] : (char *)0, &lab);
+ makelabel(argv[1], argc == 3 ? argv[2] : NULL, &lab);
lp = makebootarea(bootarea, &lab, f);
*lp = lab;
if (checklabel(lp) == 0)
@@ -284,7 +284,7 @@ main(argc, argv)
lp = readlabel(f);
tlab = *lp;
if (argc == 2)
- makelabel(argv[1], (char *)0, &lab);
+ makelabel(argv[1], NULL, &lab);
lp = makebootarea(bootarea, &lab, f);
*lp = tlab;
if (checklabel(lp) == 0)
@@ -972,7 +972,7 @@ editit()
char *argp[] = {"sh", "-c", NULL, NULL};
char *ed, *p;
- if ((ed = getenv("EDITOR")) == (char *)0)
+ if ((ed = getenv("EDITOR")) == NULL)
ed = _PATH_VI;
p = (char *)malloc(strlen(ed) + 1 + strlen(tmpfil) + 1);
if (!p) {