From d109ed079589cad02c6c4fe352f5dd1d181eaa81 Mon Sep 17 00:00:00 2001 From: pooka Date: Thu, 11 Nov 2010 18:45:09 +0000 Subject: [PATCH] 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? --- sys/rump/librump/rumpvfs/rumpfs.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/rump/librump/rumpvfs/rumpfs.c b/sys/rump/librump/rumpvfs/rumpfs.c index b8c3e047d087..29350cb7cfa4 100644 --- a/sys/rump/librump/rumpvfs/rumpfs.c +++ b/sys/rump/librump/rumpvfs/rumpfs.c @@ -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 -__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 #include @@ -1129,7 +1129,7 @@ rump_vop_read(void *v) 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 @@ rump_vop_write(void *v) void *olddata; size_t oldlen, newlen; off_t chunk; - int error; + int error = 0; bool allocd = false; /* consult et? */ @@ -1209,6 +1209,8 @@ rump_vop_write(void *v) * 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;