summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-03-16 15:41:12 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-03-16 15:41:12 +0000
commitd8ebeb5c1882685478f7aff85d3cfd52cb45385b (patch)
tree6a871a498e943d359bc98a18b415e916ac0ef2b6 /sbin/fsck_ext2fs
parent043c400f909ee0b4431a6657c5b1550df8ab4c83 (diff)
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
Diffstat (limited to 'sbin/fsck_ext2fs')
-rw-r--r--sbin/fsck_ext2fs/main.c8
-rw-r--r--sbin/fsck_ext2fs/utilities.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/sbin/fsck_ext2fs/main.c b/sbin/fsck_ext2fs/main.c
index 98bd95f0ddd..d40d5a351e5 100644
--- a/sbin/fsck_ext2fs/main.c
+++ b/sbin/fsck_ext2fs/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.26 2015/11/25 00:29:15 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.27 2016/03/16 15:41:10 krw Exp $ */
/* $NetBSD: main.c,v 1.1 1997/06/11 11:21:50 bouyer Exp $ */
/*
@@ -248,9 +248,9 @@ checkfilesys(char *filesys, char *mntpt, long auxdata, int child)
printf("\n");
}
}
- zlnhead = (struct zlncnt *)0;
- duplist = (struct dups *)0;
- muldup = (struct dups *)0;
+ zlnhead = NULL;
+ duplist = NULL;
+ muldup = NULL;
inocleanup();
if (fsmodified) {
time_t t;
diff --git a/sbin/fsck_ext2fs/utilities.c b/sbin/fsck_ext2fs/utilities.c
index 87243c42d07..ee2d01d9571 100644
--- a/sbin/fsck_ext2fs/utilities.c
+++ b/sbin/fsck_ext2fs/utilities.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utilities.c,v 1.26 2015/09/05 20:07:11 guenther Exp $ */
+/* $OpenBSD: utilities.c,v 1.27 2016/03/16 15:41:10 krw Exp $ */
/* $NetBSD: utilities.c,v 1.6 2001/02/04 21:19:34 christos Exp $ */
/*
@@ -121,7 +121,7 @@ bufinit(void)
char *bufp;
diskreads = totalreads = 0;
- pbp = pdirbp = (struct bufarea *)0;
+ pbp = pdirbp = NULL;
bufhead.b_next = bufhead.b_prev = &bufhead;
bufcnt = MAXBUFSPACE / sblock.e2fs_bsize;
if (bufcnt < MINBUFS)
@@ -256,7 +256,7 @@ ckfini(int markclean)
}
if (bufhead.b_size != cnt)
errexit("Panic: lost %d buffers\n", bufhead.b_size - cnt);
- pbp = pdirbp = (struct bufarea *)0;
+ pbp = pdirbp = NULL;
if (markclean && (sblock.e2fs.e2fs_state & E2FS_ISCLEAN) == 0) {
/*
* Mark the file system as clean, and sync the superblock.