summaryrefslogtreecommitdiff
path: root/sys/compat
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/compat
parentef47ce826459b040fa8a7e7a49cb5e54c340680e (diff)
XXX: GCC uninitialized
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/common/linux_time.c10
-rw-r--r--sys/compat/svr4/svr4_stream.c5
2 files changed, 8 insertions, 7 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",