summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-12-08 15:26:25 +0000
committertedu <tedu@openbsd.org>2015-12-08 15:26:25 +0000
commit25694b452993dc3be094811e5112eb9a9b083e4f (patch)
treeaebc424400d0d4e6632d4d4191785eb68c3d4ebe /sys/tmpfs
parentsemarie noticed that auth failures don't set errno. just print a generic (diff)
downloadwireguard-openbsd-25694b452993dc3be094811e5112eb9a9b083e4f.tar.xz
wireguard-openbsd-25694b452993dc3be094811e5112eb9a9b083e4f.zip
correct errant spacing
Diffstat (limited to 'sys/tmpfs')
-rw-r--r--sys/tmpfs/tmpfs_vnops.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c
index 518d799ae11..e3a4178fc07 100644
--- a/sys/tmpfs/tmpfs_vnops.c
+++ b/sys/tmpfs/tmpfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vnops.c,v 1.22 2015/04/17 04:43:21 guenther Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.23 2015/12/08 15:26:25 tedu Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
@@ -1335,9 +1335,9 @@ tmpfs_rename(void *v)
*/
if ((fcnp->cn_namelen == 1 && fcnp->cn_nameptr[0] == '.') ||
(fcnp->cn_namelen == 2 && fcnp->cn_nameptr[0] == '.' &&
- fcnp->cn_nameptr[1] == '.')) {
- tmpfs_rename_abort(v);
- return EINVAL;
+ fcnp->cn_nameptr[1] == '.')) {
+ tmpfs_rename_abort(v);
+ return EINVAL;
}
/*
@@ -2636,13 +2636,13 @@ filt_tmpfsread(struct knote *kn, long hint)
return (1);
}
- kn->kn_data = node->tn_size - kn->kn_fp->f_offset;
+ kn->kn_data = node->tn_size - kn->kn_fp->f_offset;
if (kn->kn_data == 0 && kn->kn_sfflags & NOTE_EOF) {
kn->kn_fflags |= NOTE_EOF;
return (1);
}
- return (kn->kn_data != 0);
+ return (kn->kn_data != 0);
}
int
@@ -2657,8 +2657,8 @@ filt_tmpfswrite(struct knote *kn, long hint)
return (1);
}
- kn->kn_data = 0;
- return (1);
+ kn->kn_data = 0;
+ return (1);
}
int