summaryrefslogtreecommitdiffstats
path: root/lib/libstand/nfs.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-18 14:45:56 +0000
committerpfg <pfg@FreeBSD.org>2016-04-18 14:45:56 +0000
commit69f0978333674cf5ecc98045212b50a953d294ae (patch)
tree95407140f29906a1684b31a3da3b603a303d1d38 /lib/libstand/nfs.c
parent889ed0c7e47e4745ee31554d05b38302364b6b8a (diff)
downloadFreeBSD-src-69f0978333674cf5ecc98045212b50a953d294ae.zip
FreeBSD-src-69f0978333674cf5ecc98045212b50a953d294ae.tar.gz
libstand: use NULL instead of zero for pointers.
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r--lib/libstand/nfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c
index a0b726c..222b2f5 100644
--- a/lib/libstand/nfs.c
+++ b/lib/libstand/nfs.c
@@ -511,7 +511,7 @@ nfs_open(const char *upath, struct open_file *f)
#ifndef NFS_NOSYMLINK
bcopy(&nfs_root_node, currfd, sizeof(*currfd));
- newfd = 0;
+ newfd = NULL;
cp = path = strdup(upath);
if (path == NULL) {
@@ -593,14 +593,14 @@ nfs_open(const char *upath, struct open_file *f)
bcopy(&nfs_root_node, currfd, sizeof(*currfd));
free(newfd);
- newfd = 0;
+ newfd = NULL;
continue;
}
free(currfd);
currfd = newfd;
- newfd = 0;
+ newfd = NULL;
}
error = 0;
@@ -1155,7 +1155,7 @@ nfs_open(const char *upath, struct open_file *f)
}
#ifndef NFS_NOSYMLINK
bcopy(&nfs_root_node, currfd, sizeof(*currfd));
- newfd = 0;
+ newfd = NULL;
cp = path = strdup(upath);
if (path == NULL) {
@@ -1241,14 +1241,14 @@ nfs_open(const char *upath, struct open_file *f)
bcopy(&nfs_root_node, currfd, sizeof(*currfd));
free(newfd);
- newfd = 0;
+ newfd = NULL;
continue;
}
free(currfd);
currfd = newfd;
- newfd = 0;
+ newfd = NULL;
}
error = 0;
OpenPOWER on IntegriCloud