Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Avoid unused variable warnings
details: https://anonhg.NetBSD.org/src/rev/16e575fdda85
branches: trunk
changeset: 790060:16e575fdda85
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:41:11 2013 +0000
description:
Avoid unused variable warnings
diffstat:
sys/kern/uipc_socket2.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 8c82d2e409de -r 16e575fdda85 sys/kern/uipc_socket2.c
--- a/sys/kern/uipc_socket2.c Sun Sep 15 15:37:27 2013 +0000
+++ b/sys/kern/uipc_socket2.c Sun Sep 15 15:41:11 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket2.c,v 1.113 2013/08/29 17:49:21 rmind Exp $ */
+/* $NetBSD: uipc_socket2.c,v 1.114 2013/09/15 15:41:11 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.113 2013/08/29 17:49:21 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.114 2013/09/15 15:41:11 martin Exp $");
#include "opt_mbuftrace.h"
#include "opt_sb_max.h"
@@ -1006,7 +1006,6 @@
sbappendaddrchain(struct sockbuf *sb, const struct sockaddr *asa,
struct mbuf *m0, int sbprio)
{
- int space;
struct mbuf *m, *n, *n0, *nlast;
int error;
@@ -1030,9 +1029,9 @@
if (m0 && (m0->m_flags & M_PKTHDR) == 0)
panic("sbappendaddrchain");
+#ifdef notyet
space = sbspace(sb);
-#ifdef notyet
/*
* Enforce SB_PRIO_* limits as described above.
*/
@@ -1097,7 +1096,7 @@
n0 = n->m_nextpkt; /* iterate at next prepended address */
MFREE(n, np); /* free prepended address (not data) */
}
- return 0;
+ return error;
}
Home |
Main Index |
Thread Index |
Old Index