Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Initialize 'error' to 0, so that nfs_putpages doesn'...
details: https://anonhg.NetBSD.org/src/rev/bcbdb79e739d
branches: trunk
changeset: 500055:bcbdb79e739d
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Dec 04 12:12:20 2000 +0000
description:
Initialize 'error' to 0, so that nfs_putpages doesn't return garbage
when pages already have been committed and nothing needs to be done.
diffstat:
sys/nfs/nfs_bio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 6fa4f8baae2f -r bcbdb79e739d sys/nfs/nfs_bio.c
--- a/sys/nfs/nfs_bio.c Mon Dec 04 12:11:49 2000 +0000
+++ b/sys/nfs/nfs_bio.c Mon Dec 04 12:12:20 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_bio.c,v 1.54 2000/11/27 08:39:48 chs Exp $ */
+/* $NetBSD: nfs_bio.c,v 1.55 2000/12/04 12:12:20 fvdl Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -1343,7 +1343,7 @@
struct vm_page **pgs = ap->a_m;
int flags = ap->a_flags;
int npages = ap->a_count;
- int s, error, i;
+ int s, error = 0, i;
size_t bytes, iobytes, skipbytes;
vaddr_t kva;
off_t offset, origoffset, commitoff;
Home |
Main Index |
Thread Index |
Old Index