Use NULL instead of 0 for pointers

This commit is contained in:
Kevin Lo 2012-07-22 15:40:31 +00:00
parent 481af8b933
commit f7a3729c91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238697
7 changed files with 13 additions and 13 deletions

View File

@ -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;

View File

@ -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;

View File

@ -108,7 +108,7 @@ msdosfs_lookup_(struct vnode *vdp, struct vnode **vpp,
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;

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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;