Fix uninitialized variable warning

This commit is contained in:
christos 2003-10-25 18:31:59 +00:00
parent 125ccd91b1
commit 2017bf9a94
4 changed files with 14 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntfs_vfsops.c,v 1.11 2003/08/02 12:11:56 jdolecek Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.12 2003/10/25 18:33:13 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.11 2003/08/02 12:11:56 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.12 2003/10/25 18:33:13 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -908,7 +908,7 @@ ntfs_vgetex(
struct ntnode *ip;
struct fnode *fp;
struct vnode *vp;
enum vtype f_type;
enum vtype f_type = V_BAD;
dprintf(("ntfs_vgetex: ino: %d, attr: 0x%x:%s, lkf: 0x%lx, f: 0x%lx\n",
ino, attrtype, attrname?attrname:"", (u_long)lkflags,
@ -993,6 +993,7 @@ ntfs_vgetex(
#endif
fp->f_vp = vp;
vp->v_data = fp;
KASSERT(f_type != VBAD);
vp->v_type = f_type;
if (ino == NTFS_ROOTINO)

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_subr.c,v 1.105 2003/09/14 11:12:14 yamt Exp $ */
/* $NetBSD: kern_subr.c,v 1.106 2003/10/25 18:31:59 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.105 2003/09/14 11:12:14 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.106 2003/10/25 18:31:59 christos Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -342,9 +342,11 @@ hashinit(elements, htype, mtype, mflags, hashmask)
case HASH_TAILQ:
esize = sizeof(*hashtbl_tailq);
break;
#ifdef DIAGNOSTIC
default:
#ifdef DIAGNOSTIC
panic("hashinit: invalid table type");
#else
return NULL;
#endif
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ieee80211_input.c,v 1.12 2003/10/25 03:18:37 mycroft Exp $ */
/* $NetBSD: ieee80211_input.c,v 1.13 2003/10/25 18:32:22 christos Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@ -35,7 +35,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.8 2003/08/19 22:17:03 sam Exp $");
#else
__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.12 2003/10/25 03:18:37 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.13 2003/10/25 18:32:22 christos Exp $");
#endif
#include "opt_inet.h"
@ -657,7 +657,7 @@ ieee80211_auth_shared(struct ieee80211com *ic, struct ieee80211_frame *wh,
{
struct ifnet *ifp = &ic->ic_if;
u_int8_t *challenge = NULL;
int allocbs, i;
int allocbs = 0, i; /* XXX: gcc */
if ((ic->ic_flags & IEEE80211_F_WEPON) == 0) {
IEEE80211_DPRINTF(("%s: WEP is off\n", __func__));

View File

@ -70,7 +70,7 @@
#define USE_RADIX
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.13 2003/01/21 03:23:44 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.14 2003/10/25 18:32:45 christos Exp $");
#include "opt_mrouting.h"
#include "opt_inet.h"
@ -761,6 +761,7 @@ encap6_ctlinput(cmd, sa, d0)
cmdarg = NULL;
sa6_src = &sa6_any;
nxt = -1;
off = 0; /* XXX: gcc */
}
if (ip6 && cmd == PRC_MSGSIZE) {