Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs help me if you can i'm gcc



details:   https://anonhg.NetBSD.org/src/rev/0bac6c95475a
branches:  trunk
changeset: 758634:0bac6c95475a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 11 18:45:09 2010 +0000

description:
help me if you can i'm gcc
and i do appreciate work'round-eee'e
help me, get my head out of the ground
won't you please, please help me?

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 58025d1fc9aa -r 0bac6c95475a sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Thu Nov 11 17:44:44 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Thu Nov 11 18:45:09 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.72 2010/11/11 17:33:22 pooka Exp $        */
+/*     $NetBSD: rumpfs.c,v 1.73 2010/11/11 18:45:09 pooka Exp $        */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.72 2010/11/11 17:33:22 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.73 2010/11/11 18:45:09 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -1129,7 +1129,7 @@
        struct uio *uio = ap->a_uio;
        const int advice = IO_ADV_DECODE(ap->a_ioflag);
        off_t chunk;
-       int error;
+       int error = 0;
 
        /* et op? */
        if (rn->rn_flags & RUMPNODE_ET_PHONE_HOST)
@@ -1191,7 +1191,7 @@
        void *olddata;
        size_t oldlen, newlen;
        off_t chunk;
-       int error;
+       int error = 0;
        bool allocd = false;
 
        /* consult et? */
@@ -1209,6 +1209,8 @@
         * No, it doesn't really support sparse files, just fakes it.
         */
        newlen = uio->uio_offset + uio->uio_resid;
+       oldlen = 0; /* XXXgcc */
+       olddata = NULL;
        if (rn->rn_dlen < newlen) {
                oldlen = rn->rn_dlen;
                olddata = rn->rn_data;



Home | Main Index | Thread Index | Old Index