From: Julian Seward Date: Tue, 21 May 2002 00:05:10 +0000 (+0000) Subject: gcc-3.1 compile fix. X-Git-Tag: svn/VALGRIND_1_0_3~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a4460dd12416daf564446f61266871478248e1;p=thirdparty%2Fvalgrind.git gcc-3.1 compile fix. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@299 --- diff --git a/coregrind/vg_signals.c b/coregrind/vg_signals.c index ca4b58d598..677b272a53 100644 --- a/coregrind/vg_signals.c +++ b/coregrind/vg_signals.c @@ -641,13 +641,13 @@ void VG_(send_signal_to_thread) ( ThreadId thread, Int sig ) switch ((UInt)(vg_scss.scss_per_sig[sig].scss_handler)) { - case VKI_SIG_IGN: + case ((UInt)VKI_SIG_IGN): if (VG_(clo_trace_signals)) VG_(message)(Vg_DebugMsg, "send_signal %d to_thread %d: IGN, ignored", sig, thread ); break; - case VKI_SIG_DFL: + case ((UInt)VKI_SIG_DFL): /* This is the tricky case. Since we don't handle default actions, the simple thing is to send someone round to the front door and signal there. Then the kernel will do diff --git a/vg_signals.c b/vg_signals.c index ca4b58d598..677b272a53 100644 --- a/vg_signals.c +++ b/vg_signals.c @@ -641,13 +641,13 @@ void VG_(send_signal_to_thread) ( ThreadId thread, Int sig ) switch ((UInt)(vg_scss.scss_per_sig[sig].scss_handler)) { - case VKI_SIG_IGN: + case ((UInt)VKI_SIG_IGN): if (VG_(clo_trace_signals)) VG_(message)(Vg_DebugMsg, "send_signal %d to_thread %d: IGN, ignored", sig, thread ); break; - case VKI_SIG_DFL: + case ((UInt)VKI_SIG_DFL): /* This is the tricky case. Since we don't handle default actions, the simple thing is to send someone round to the front door and signal there. Then the kernel will do