diff options
author | wkoszek <wkoszek@FreeBSD.org> | 2007-12-04 20:14:15 +0000 |
---|---|---|
committer | wkoszek <wkoszek@FreeBSD.org> | 2007-12-04 20:14:15 +0000 |
commit | 411cf00f62aebdc2ae138f2e75b1a75811fd1210 (patch) | |
tree | c36acd2e403a6f477a700a7d2052eaffb73e6fa8 /sys/fs/tmpfs | |
parent | 954e8dafee7bb063125993a2dc1bb1ef24233b49 (diff) | |
download | FreeBSD-src-411cf00f62aebdc2ae138f2e75b1a75811fd1210.zip FreeBSD-src-411cf00f62aebdc2ae138f2e75b1a75811fd1210.tar.gz |
Explicitly initialize 'error' to 0 (two places). It lets one to build tmpfs
from the latest source tree with older compiler--gcc3.
Reviewed by: kib@ (on freebsd-current@)
Approved by: cognet@ (mentor)
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 6da260c..f9b7db7 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -529,7 +529,7 @@ tmpfs_read(struct vop_read_args *v) size_t len; int resid; - int error; + int error = 0; node = VP_TO_TMPFS_NODE(vp); @@ -576,6 +576,8 @@ tmpfs_mappedwrite(vm_object_t vobj, vm_object_t tobj, size_t len, struct uio *ui caddr_t va; int error; + error = 0; + addr = uio->uio_offset; idx = OFF_TO_IDX(addr); offset = addr & PAGE_MASK; |