Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern remove __GNUC__ lossage.



details:   https://anonhg.NetBSD.org/src/rev/eb4dc0827f62
branches:  trunk
changeset: 534102:eb4dc0827f62
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jul 16 19:53:37 2002 +0000

description:
remove __GNUC__ lossage.

diffstat:

 sys/kern/kern_systrace.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r 7f56dc2c6af7 -r eb4dc0827f62 sys/kern/kern_systrace.c
--- a/sys/kern/kern_systrace.c  Tue Jul 16 18:03:17 2002 +0000
+++ b/sys/kern/kern_systrace.c  Tue Jul 16 19:53:37 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_systrace.c,v 1.6 2002/07/16 16:40:56 thorpej Exp $        */
+/*     $NetBSD: kern_systrace.c,v 1.7 2002/07/16 19:53:37 christos Exp $       */
 
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.6 2002/07/16 16:40:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.7 2002/07/16 19:53:37 christos Exp $");
 
 #include "opt_systrace.h"
 
@@ -1251,12 +1251,8 @@
 {
        struct str_message *msg = &strp->msg;
        struct fsystrace *fst = strp->parent;
-       struct proc *p = strp->proc;
        int st;
 
-#if defined(__GNUC__) && defined(__NetBSD__)
-       (void) &p;      /* Sanitize gcc */
-#endif
        msg->msg_type = type;
        msg->msg_pid = strp->pid;
        if (strp->policy)
@@ -1275,7 +1271,7 @@
        systrace_wakeup(fst);
 
        /* Release the lock - XXX */
-       SYSTRACE_UNLOCK(fst, p);
+       SYSTRACE_UNLOCK(fst, strp->proc);
 
        while (1) {
                st = tsleep(strp, PWAIT | PCATCH, "systrmsg", 0);



Home | Main Index | Thread Index | Old Index