XXX: GCC uninitialized
This commit is contained in:
parent
ef47ce8264
commit
ca0ec852e6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_time.c,v 1.13 2005/12/11 12:20:19 christos Exp $ */
|
||||
/* $NetBSD: linux_time.c,v 1.14 2006/05/14 03:40:54 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.13 2005/12/11 12:20:19 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.14 2006/05/14 03:40:54 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/ucred.h>
|
||||
@ -189,7 +189,7 @@ linux_sys_clock_gettime(l, v, retval)
|
||||
struct timespec *tp, ts;
|
||||
struct linux_timespec lts;
|
||||
int error;
|
||||
clockid_t nwhich;
|
||||
clockid_t nwhich = 0; /* XXX: GCC */
|
||||
struct sys_clock_gettime_args sga;
|
||||
|
||||
error = linux_to_native_clockid(&nwhich, SCARG(uap, which));
|
||||
@ -229,7 +229,7 @@ linux_sys_clock_settime(l, v, retval)
|
||||
struct timespec *tp, ts;
|
||||
struct linux_timespec lts;
|
||||
int error;
|
||||
clockid_t nwhich;
|
||||
clockid_t nwhich = 0; /* XXX: GCC */
|
||||
struct sys_clock_settime_args sta;
|
||||
|
||||
error = linux_to_native_clockid(&nwhich, SCARG(uap, which));
|
||||
@ -269,7 +269,7 @@ linux_sys_clock_getres(l, v, retval)
|
||||
struct timespec *tp, ts;
|
||||
struct linux_timespec lts;
|
||||
int error;
|
||||
clockid_t nwhich;
|
||||
clockid_t nwhich = 0; /* XXX: GCC */
|
||||
struct sys_clock_gettime_args sga;
|
||||
|
||||
error = linux_to_native_clockid(&nwhich, SCARG(uap, which));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_stream.c,v 1.57 2006/05/11 01:00:02 mrg Exp $ */
|
||||
/* $NetBSD: svr4_stream.c,v 1.58 2006/05/14 03:40:54 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
@ -44,7 +44,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.57 2006/05/11 01:00:02 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.58 2006/05/14 03:40:54 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -449,6 +449,7 @@ si_ogetudata(fp, fd, ioc, l)
|
||||
int error;
|
||||
struct svr4_si_oudata ud;
|
||||
struct svr4_si_sockparms pa;
|
||||
(void)memset(&pa, 0, sizeof(pa)); /* XXX: GCC */
|
||||
|
||||
if (ioc->len != sizeof(ud) && ioc->len != sizeof(ud) - sizeof(int)) {
|
||||
DPRINTF(("SI_OGETUDATA: Wrong size %ld != %d\n",
|
||||
|
10
sys/dist/pf/net/pf.c
vendored
10
sys/dist/pf/net/pf.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pf.c,v 1.22 2006/05/11 01:08:38 mrg Exp $ */
|
||||
/* $NetBSD: pf.c,v 1.23 2006/05/14 03:40:02 christos Exp $ */
|
||||
/* $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */
|
||||
|
||||
/*
|
||||
@ -2785,8 +2785,8 @@ pf_test_tcp(struct pf_rule **rm, struct pf_state **sm, int direction,
|
||||
u_int16_t bport, nport = 0;
|
||||
sa_family_t af = pd->af;
|
||||
int lookup = -1;
|
||||
uid_t uid;
|
||||
gid_t gid;
|
||||
uid_t uid = 0; /* XXX: GCC */
|
||||
gid_t gid = 0; /* XXX: GCC */
|
||||
struct pf_rule *r, *a = NULL;
|
||||
struct pf_ruleset *ruleset = NULL;
|
||||
struct pf_src_node *nsn = NULL;
|
||||
@ -3161,8 +3161,8 @@ pf_test_udp(struct pf_rule **rm, struct pf_state **sm, int direction,
|
||||
u_int16_t bport, nport = 0;
|
||||
sa_family_t af = pd->af;
|
||||
int lookup = -1;
|
||||
uid_t uid;
|
||||
gid_t gid;
|
||||
uid_t uid = 0; /* XXX: GCC */
|
||||
gid_t gid = 0; /* XXX: GCC */
|
||||
struct pf_rule *r, *a = NULL;
|
||||
struct pf_ruleset *ruleset = NULL;
|
||||
struct pf_src_node *nsn = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user