svn commit: r303704 - head/sys/fs/pseudofs
Konstantin Belousov
kib at FreeBSD.org
Wed Aug 3 08:53:30 UTC 2016
Author: kib
Date: Wed Aug 3 08:53:29 2016
New Revision: 303704
URL: https://svnweb.freebsd.org/changeset/base/303704
Log:
Some style changes. Fix a typo in comment.
Approved by: des (pseudofs maintainer)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/fs/pseudofs/pseudofs.c
head/sys/fs/pseudofs/pseudofs.h
Modified: head/sys/fs/pseudofs/pseudofs.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs.c Wed Aug 3 07:11:19 2016 (r303703)
+++ head/sys/fs/pseudofs/pseudofs.c Wed Aug 3 08:53:29 2016 (r303704)
@@ -387,7 +387,7 @@ pfs_init(struct pfs_info *pi, struct vfs
pfs_fileno_init(pi);
- /* set up the root diretory */
+ /* set up the root directory */
root = pfs_alloc_node(pi, "/", pfstype_root);
pi->pi_root = root;
pfs_fileno_alloc(root);
Modified: head/sys/fs/pseudofs/pseudofs.h
==============================================================================
--- head/sys/fs/pseudofs/pseudofs.h Wed Aug 3 07:11:19 2016 (r303703)
+++ head/sys/fs/pseudofs/pseudofs.h Wed Aug 3 08:53:29 2016 (r303704)
@@ -198,7 +198,7 @@ struct pfs_info {
pfs_init_t pi_init;
pfs_init_t pi_uninit;
- /* members below this line are initialized at run time*/
+ /* members below this line are initialized at run time */
struct pfs_node *pi_root;
struct mtx pi_mutex;
struct unrhdr *pi_unrhdr;
@@ -285,17 +285,17 @@ static int \
_##name##_mount(struct mount *mp) { \
if (jflag && !prison_allow(curthread->td_ucred, jflag)) \
return (EPERM); \
- return pfs_mount(&name##_info, mp); \
+ return (pfs_mount(&name##_info, mp)); \
} \
\
static int \
_##name##_init(struct vfsconf *vfc) { \
- return pfs_init(&name##_info, vfc); \
+ return (pfs_init(&name##_info, vfc)); \
} \
\
static int \
_##name##_uninit(struct vfsconf *vfc) { \
- return pfs_uninit(&name##_info, vfc); \
+ return (pfs_uninit(&name##_info, vfc)); \
} \
\
static struct vfsops name##_vfsops = { \
More information about the svn-src-head
mailing list