From 100356d547b615a8f6957325edd26c1fedb3fce5 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 16 Jul 2002 19:53:37 +0000 Subject: [PATCH] remove __GNUC__ lossage. --- sys/kern/kern_systrace.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_systrace.c b/sys/kern/kern_systrace.c index d6b1981d1415..41d9b4f1a03d 100644 --- a/sys/kern/kern_systrace.c +++ b/sys/kern/kern_systrace.c @@ -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 @@ -31,7 +31,7 @@ */ #include -__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 @@ systrace_make_msg(struct str_process *strp, int type) { 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_make_msg(struct str_process *strp, int type) 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);