Module Name:    src
Committed By:   matt
Date:           Fri Apr 29 22:09:42 UTC 2011

Modified Files:
        src/sys/arch/mips/mips: sig_machdep.c

Log Message:
constification


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mips/mips/sig_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/sig_machdep.c
diff -u src/sys/arch/mips/mips/sig_machdep.c:1.21 src/sys/arch/mips/mips/sig_machdep.c:1.22
--- src/sys/arch/mips/mips/sig_machdep.c:1.21	Sun Feb 20 07:45:48 2011
+++ src/sys/arch/mips/mips/sig_machdep.c	Fri Apr 29 22:09:41 2011
@@ -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)

Reply via email to