Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips constification
details: https://anonhg.NetBSD.org/src/rev/5fc766a3a9db
branches: trunk
changeset: 764649:5fc766a3a9db
user: matt <matt%NetBSD.org@localhost>
date: Fri Apr 29 22:09:41 2011 +0000
description:
constification
diffstat:
sys/arch/mips/mips/sig_machdep.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 6a19958193b0 -r 5fc766a3a9db sys/arch/mips/mips/sig_machdep.c
--- a/sys/arch/mips/mips/sig_machdep.c Fri Apr 29 22:09:08 2011 +0000
+++ b/sys/arch/mips/mips/sig_machdep.c Fri Apr 29 22:09:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sig_machdep.c,v 1.21 2011/02/20 07:45:48 matt Exp $ */
+/* $NetBSD: sig_machdep.c,v 1.22 2011/04/29 22:09:41 matt Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.21 2011/02/20 07:45:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.22 2011/04/29 22:09:41 matt Exp $");
#include "opt_cputype.h"
@@ -75,10 +75,10 @@
void
sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask)
{
- struct lwp *l = curlwp;
- struct proc *p = l->l_proc;
- struct sigacts *ps = p->p_sigacts;
- struct trapframe *tf = l->l_md.md_utf;
+ struct lwp * const l = curlwp;
+ struct proc * const p = l->l_proc;
+ struct sigacts * const sa = p->p_sigacts;
+ struct trapframe * const tf = l->l_md.md_utf;
int onstack, error;
const int signo = ksi->ksi_signo;
struct sigframe_siginfo *sf = getframe(l, signo, &onstack);
@@ -121,7 +121,7 @@
tf->tf_regs[_R_PC] = (intptr_t)catcher;
tf->tf_regs[_R_T9] = (intptr_t)catcher;
tf->tf_regs[_R_SP] = (intptr_t)sf;
- tf->tf_regs[_R_RA] = (intptr_t)ps->sa_sigdesc[signo].sd_tramp;
+ tf->tf_regs[_R_RA] = (intptr_t)sa->sa_sigdesc[signo].sd_tramp;
/* Remember that we're now on the signal stack. */
if (onstack)
Home |
Main Index |
Thread Index |
Old Index