Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src remove unused variable.
details: https://anonhg.NetBSD.org/src/rev/9c9203801709
branches: trunk
changeset: 791639:9c9203801709
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Nov 27 14:21:31 2013 +0000
description:
remove unused variable.
diffstat:
external/bsd/nvi/dist/vi/vs_split.c | 4 +---
sys/arch/sparc64/sparc64/sunos_machdep.c | 7 +++----
2 files changed, 4 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r 15f108cbb6c2 -r 9c9203801709 external/bsd/nvi/dist/vi/vs_split.c
--- a/external/bsd/nvi/dist/vi/vs_split.c Wed Nov 27 12:24:56 2013 +0000
+++ b/external/bsd/nvi/dist/vi/vs_split.c Wed Nov 27 14:21:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vs_split.c,v 1.3 2013/11/25 22:43:46 christos Exp $ */
+/* $NetBSD: vs_split.c,v 1.4 2013/11/27 14:21:31 mrg Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -808,12 +808,10 @@
vs_resize(SCR *sp, long int count, adj_t adj)
{
GS *gp;
- WIN *wp;
SCR *g, *s, *prev, *next, *list[3] = {NULL, NULL, NULL};
size_t g_off, s_off;
gp = sp->gp;
- wp = sp->wp;
/*
* Figure out which screens will grow, which will shrink, and
diff -r 15f108cbb6c2 -r 9c9203801709 sys/arch/sparc64/sparc64/sunos_machdep.c
--- a/sys/arch/sparc64/sparc64/sunos_machdep.c Wed Nov 27 12:24:56 2013 +0000
+++ b/sys/arch/sparc64/sparc64/sunos_machdep.c Wed Nov 27 14:21:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_machdep.c,v 1.31 2009/11/21 04:16:52 rmind Exp $ */
+/* $NetBSD: sunos_machdep.c,v 1.32 2013/11/27 14:22:45 mrg Exp $ */
/*
* Copyright (c) 1995 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_machdep.c,v 1.31 2009/11/21 04:16:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_machdep.c,v 1.32 2013/11/27 14:22:45 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -87,7 +87,7 @@
register struct sunos_sigframe *fp;
register struct trapframe64 *tf;
register int addr, onstack;
- struct rwindow32 *kwin, *oldsp, *newsp;
+ struct rwindow32 *oldsp, *newsp;
int sig = ksi->ksi_signo, error;
sig_t catcher = SIGACTION(p, sig).sa_handler;
struct sunos_sigframe sf;
@@ -160,7 +160,6 @@
printf("sunos_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));
Home |
Main Index |
Thread Index |
Old Index