summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-05-14 03:40:02 +0000
committerchristos <christos@NetBSD.org>2006-05-14 03:40:02 +0000
commitca0ec852e655e99d75edea23a8ec3a4a5d7bae2b (patch)
tree14227f1efaae3e562d6c935823f478e6e02aedd9 /sys
parentef47ce826459b040fa8a7e7a49cb5e54c340680e (diff)
XXX: GCC uninitialized
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/common/linux_time.c10
-rw-r--r--sys/compat/svr4/svr4_stream.c5
-rw-r--r--sys/dist/pf/net/pf.c10
3 files changed, 13 insertions, 12 deletions
diff --git a/sys/compat/linux/common/linux_time.c b/sys/compat/linux/common/linux_time.c
index 7cd5f0d3638..3fdd0fa614a 100644
--- a/sys/compat/linux/common/linux_time.c
+++ b/sys/compat/linux/common/linux_time.c
@@ -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));
diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c
index ad9a395dc5a..b5f69db7476 100644
--- a/sys/compat/svr4/svr4_stream.c
+++ b/sys/compat/svr4/svr4_stream.c
@@ -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",
diff --git a/sys/dist/pf/net/pf.c b/sys/dist/pf/net/pf.c
index 2788d101e28..552beccc6fe 100644
--- a/sys/dist/pf/net/pf.c
+++ b/sys/dist/pf/net/pf.c
@@ -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;