Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/69b1a73c993f
branches: trunk
changeset: 790004:69b1a73c993f
user: martin <martin%NetBSD.org@localhost>
date: Sat Sep 14 21:08:35 2013 +0000
description:
Remove unused variable
diffstat:
sys/arch/sparc64/sparc64/netbsd32_machdep.c | 7 +++----
sys/netinet6/nd6_rtr.c | 7 ++-----
2 files changed, 5 insertions(+), 9 deletions(-)
diffs (70 lines):
diff -r fcf3320396e6 -r 69b1a73c993f sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c Sat Sep 14 21:06:50 2013 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c Sat Sep 14 21:08:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.99 2012/09/13 11:53:45 martin Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.100 2013/09/14 21:09:56 martin Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.99 2012/09/13 11:53:45 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.100 2013/09/14 21:09:56 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -180,7 +180,7 @@
struct sparc32_sigframe *fp;
struct trapframe64 *tf;
int addr, onstack, error;
- struct rwindow32 *kwin, *oldsp, *newsp;
+ struct rwindow32 *oldsp, *newsp;
sig_t catcher = SIGACTION(p, sig).sa_handler;
struct sparc32_sigframe sf;
extern char netbsd32_sigcode[], netbsd32_esigcode[];
@@ -251,7 +251,6 @@
printf("sendsig: saving sf to %p, setting stack pointer %p to %p\n",
fp, &(((struct rwindow32 *)newsp)->rw_in[6]), oldsp);
#endif
- kwin = (struct rwindow32 *)((char *)tf - CCFSZ);
error = (rwindow_save(l) ||
copyout((void *)&sf, (void *)fp, sizeof sf) ||
suword(&(((struct rwindow32 *)newsp)->rw_in[6]), (u_long)oldsp));
diff -r fcf3320396e6 -r 69b1a73c993f sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c Sat Sep 14 21:06:50 2013 +0000
+++ b/sys/netinet6/nd6_rtr.c Sat Sep 14 21:08:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_rtr.c,v 1.89 2013/06/20 13:56:29 roy Exp $ */
+/* $NetBSD: nd6_rtr.c,v 1.90 2013/09/14 21:08:35 martin Exp $ */
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.89 2013/06/20 13:56:29 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.90 2013/09/14 21:08:35 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1064,7 +1064,6 @@
struct nd_prefix *pr;
int s = splsoftnet();
int error = 0;
- int newprefix = 0;
int auth;
struct in6_addrlifetime lt6_tmp;
@@ -1122,8 +1121,6 @@
} else {
struct nd_prefix *newpr = NULL;
- newprefix = 1;
-
if (new->ndpr_vltime == 0)
goto end;
if (new->ndpr_raf_onlink == 0 && new->ndpr_raf_auto == 0)
Home |
Main Index |
Thread Index |
Old Index