From: Philip Homburg Date: Mon, 25 Feb 2008 14:35:11 +0000 (+0000) Subject: _function, function -> call_nr X-Git-Tag: v3.1.4~243 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named.html?a=commitdiff_plain;h=a508e0a03c700aaa007b314729cb8ed501e59b72;p=minix.git _function, function -> call_nr --- diff --git a/kernel/proc.c b/kernel/proc.c index 0775be53c..c405a2c91 100755 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -221,11 +221,10 @@ if (src_dst_e == 0) panic("sys_call: no PM", NO_NUM); return(ETRAPDENIED); /* trap denied by mask or kernel */ } - if ((iskerneln(src_dst_p) && _function != SENDREC - && _function != RECEIVE)) { + if ((iskerneln(src_dst_p) && call_nr != SENDREC && call_nr != RECEIVE)) { #if DEBUG_ENABLE_IPC_WARNINGS kprintf("sys_call: trap %d not allowed, caller %d, src_dst %d\n", - function, proc_nr(caller_ptr), src_dst); + call_nr, proc_nr(caller_ptr), src_dst); #endif if (caller_ptr->p_endpoint == ipc_stats_target) ipc_stats.call_not_allowed++;