summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/pass1.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-12 22:55:47 +0000
committerpfg <pfg@FreeBSD.org>2016-04-12 22:55:47 +0000
commit64332fef7de27c50f6522add770ceda556bdb4d6 (patch)
tree61d0fd2754e2e62ac62c940e80fcb04675619407 /sbin/fsck_ffs/pass1.c
parent5e2c24a43d150300de7952faf86b881bec60720a (diff)
downloadFreeBSD-src-64332fef7de27c50f6522add770ceda556bdb4d6.zip
FreeBSD-src-64332fef7de27c50f6522add770ceda556bdb4d6.tar.gz
fsck_ffs for pointers replace 0 with NULL.
Found with devel/coccinelle. Reviewed by: mckusick
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
-rw-r--r--sbin/fsck_ffs/pass1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c
index 67fba6e..98d2a05 100644
--- a/sbin/fsck_ffs/pass1.c
+++ b/sbin/fsck_ffs/pass1.c
@@ -151,7 +151,7 @@ pass1(void)
*/
inostathead[c].il_numalloced = inosused;
if (inosused == 0) {
- inostathead[c].il_stat = 0;
+ inostathead[c].il_stat = NULL;
continue;
}
info = Calloc((unsigned)inosused, sizeof(struct inostat));
@@ -221,7 +221,7 @@ pass1(void)
inostathead[c].il_numalloced = inosused;
if (inosused == 0) {
free(inostathead[c].il_stat);
- inostathead[c].il_stat = 0;
+ inostathead[c].il_stat = NULL;
continue;
}
info = Calloc((unsigned)inosused, sizeof(struct inostat));
@@ -500,9 +500,9 @@ pass1check(struct inodesc *idesc)
return (STOP);
}
new->dup = blkno;
- if (muldup == 0) {
+ if (muldup == NULL) {
duplist = muldup = new;
- new->next = 0;
+ new->next = NULL;
} else {
new->next = muldup->next;
muldup->next = new;
OpenPOWER on IntegriCloud