svn commit: r238697 - in head/sys: fs/cd9660 fs/ext2fs fs/msdosfs
fs/portalfs fs/udf ufs/ffs
Kevin Lo
kevlo at FreeBSD.org
Sun Jul 22 15:40:32 UTC 2012
Author: kevlo
Date: Sun Jul 22 15:40:31 2012
New Revision: 238697
URL: http://svn.freebsd.org/changeset/base/238697
Log:
Use NULL instead of 0 for pointers
Modified:
head/sys/fs/cd9660/cd9660_vfsops.c
head/sys/fs/ext2fs/ext2_vfsops.c
head/sys/fs/msdosfs/msdosfs_lookup.c
head/sys/fs/portalfs/portal_vnops.c
head/sys/fs/udf/udf_vfsops.c
head/sys/ufs/ffs/ffs_snapshot.c
head/sys/ufs/ffs/ffs_vfsops.c
Modified: head/sys/fs/cd9660/cd9660_vfsops.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_vfsops.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/fs/cd9660/cd9660_vfsops.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -133,7 +133,7 @@ cd9660_mount(struct mount *mp)
int error;
accmode_t accmode;
struct nameidata ndp;
- struct iso_mnt *imp = 0;
+ struct iso_mnt *imp = NULL;
td = curthread;
@@ -214,7 +214,7 @@ iso_mountfs(devvp, mp)
int iso_bsize;
int iso_blknum;
int joliet_level;
- struct iso_volume_descriptor *vdp = 0;
+ struct iso_volume_descriptor *vdp = NULL;
struct iso_primary_descriptor *pri = NULL;
struct iso_sierra_primary_descriptor *pri_sierra = NULL;
struct iso_supplementary_descriptor *sup = NULL;
Modified: head/sys/fs/ext2fs/ext2_vfsops.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_vfsops.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/fs/ext2fs/ext2_vfsops.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -112,7 +112,7 @@ ext2_mount(struct mount *mp)
struct vfsoptlist *opts;
struct vnode *devvp;
struct thread *td;
- struct ext2mount *ump = 0;
+ struct ext2mount *ump = NULL;
struct m_ext2fs *fs;
struct nameidata nd, *ndp = &nd;
accmode_t accmode;
Modified: head/sys/fs/msdosfs/msdosfs_lookup.c
==============================================================================
--- head/sys/fs/msdosfs/msdosfs_lookup.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/fs/msdosfs/msdosfs_lookup.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -108,7 +108,7 @@ msdosfs_lookup_(struct vnode *vdp, struc
struct denode *dp;
struct denode *tdp;
struct msdosfsmount *pmp;
- struct buf *bp = 0;
+ struct buf *bp = NULL;
struct direntry *dep = NULL;
u_char dosfilename[12];
int flags = cnp->cn_flags;
Modified: head/sys/fs/portalfs/portal_vnops.c
==============================================================================
--- head/sys/fs/portalfs/portal_vnops.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/fs/portalfs/portal_vnops.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -110,7 +110,7 @@ portal_lookup(ap)
char *pname = cnp->cn_nameptr;
struct portalnode *pt;
int error;
- struct vnode *fvp = 0;
+ struct vnode *fvp = NULL;
char *path;
int size;
@@ -217,14 +217,14 @@ portal_open(ap)
struct thread *a_td;
} */ *ap;
{
- struct socket *so = 0;
+ struct socket *so = NULL;
struct portalnode *pt;
struct thread *td = ap->a_td;
struct vnode *vp = ap->a_vp;
struct uio auio;
struct iovec aiov[2];
int res;
- struct mbuf *cm = 0;
+ struct mbuf *cm = NULL;
struct cmsghdr *cmsg;
int newfds;
int *ip;
@@ -356,7 +356,7 @@ portal_open(ap)
len = auio.uio_resid = sizeof(int);
do {
- struct mbuf *m = 0;
+ struct mbuf *m = NULL;
int flags = MSG_WAITALL;
error = soreceive(so, (struct sockaddr **) 0, &auio,
&m, &cm, &flags);
Modified: head/sys/fs/udf/udf_vfsops.c
==============================================================================
--- head/sys/fs/udf/udf_vfsops.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/fs/udf/udf_vfsops.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -190,7 +190,7 @@ udf_mount(struct mount *mp)
{
struct vnode *devvp; /* vnode of the mount device */
struct thread *td;
- struct udf_mnt *imp = 0;
+ struct udf_mnt *imp = NULL;
struct vfsoptlist *opts;
char *fspec, *cs_disk, *cs_local;
int error, len, *udf_flags;
Modified: head/sys/ufs/ffs/ffs_snapshot.c
==============================================================================
--- head/sys/ufs/ffs/ffs_snapshot.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/ufs/ffs/ffs_snapshot.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -1742,7 +1742,7 @@ ffs_snapblkfree(fs, devvp, bno, size, in
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;
Modified: head/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vfsops.c Sun Jul 22 15:08:34 2012 (r238696)
+++ head/sys/ufs/ffs/ffs_vfsops.c Sun Jul 22 15:40:31 2012 (r238697)
@@ -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;
More information about the svn-src-all
mailing list