summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-07-22 15:40:31 +0000
committerkevlo <kevlo@FreeBSD.org>2012-07-22 15:40:31 +0000
commite2ca2cfba28c2182ce885d8173b5411ce7727792 (patch)
tree520b16869f4028f7313c2c525c5e8a2e396d6a8d /sys/ufs
parent625315028814d69f31bf6369f778125857fcb978 (diff)
downloadFreeBSD-src-e2ca2cfba28c2182ce885d8173b5411ce7727792.zip
FreeBSD-src-e2ca2cfba28c2182ce885d8173b5411ce7727792.tar.gz
Use NULL instead of 0 for pointers
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c6
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 9d03f03..56648af 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -1742,7 +1742,7 @@ ffs_snapblkfree(fs, devvp, bno, size, inum, vtype, wkhd)
enum vtype vtype;
struct workhead *wkhd;
{
- struct buf *ibp, *cbp, *savedcbp = 0;
+ struct buf *ibp, *cbp, *savedcbp = NULL;
struct thread *td = curthread;
struct inode *ip;
struct vnode *vp = NULL;
@@ -2236,11 +2236,11 @@ ffs_copyonwrite(devvp, bp)
struct buf *bp;
{
struct snapdata *sn;
- struct buf *ibp, *cbp, *savedcbp = 0;
+ struct buf *ibp, *cbp, *savedcbp = NULL;
struct thread *td = curthread;
struct fs *fs;
struct inode *ip;
- struct vnode *vp = 0;
+ struct vnode *vp = NULL;
ufs2_daddr_t lbn, blkno, *snapblklist;
int lower, upper, mid, indiroff, error = 0;
int launched_async_io, prev_norunningbuf;
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index fee8012..cc8d826 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -142,7 +142,7 @@ ffs_mount(struct mount *mp)
{
struct vnode *devvp;
struct thread *td;
- struct ufsmount *ump = 0;
+ struct ufsmount *ump = NULL;
struct fs *fs;
pid_t fsckpid = 0;
int error, flags;
OpenPOWER on IntegriCloud