Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern initialize a variable, hi gcc again!
details: https://anonhg.NetBSD.org/src/rev/bbab2b8f93d5
branches: trunk
changeset: 790565:bbab2b8f93d5
user: christos <christos%NetBSD.org@localhost>
date: Thu Oct 17 20:57:06 2013 +0000
description:
initialize a variable, hi gcc again!
diffstat:
sys/kern/uipc_socket.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c2a6ad8c478a -r bbab2b8f93d5 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c Thu Oct 17 20:56:02 2013 +0000
+++ b/sys/kern/uipc_socket.c Thu Oct 17 20:57:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.218 2013/10/08 14:54:29 seanb Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.219 2013/10/17 20:57:06 christos Exp $ */
/*-
* Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.218 2013/10/08 14:54:29 seanb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.219 2013/10/17 20:57:06 christos Exp $");
#include "opt_compat_netbsd.h"
#include "opt_sock_counters.h"
@@ -1664,7 +1664,8 @@
static int
sosetopt1(struct socket *so, const struct sockopt *sopt)
{
- int error = EINVAL, optval, opt;
+ int error = EINVAL, opt;
+ int optval = 0; /* XXX: gcc */
struct linger l;
struct timeval tv;
Home |
Main Index |
Thread Index |
Old Index