From c53c7b1fce7838990d7a79b32b8628c8b1936e2f Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 4 Aug 2004 15:31:30 +0000 Subject: [PATCH] handle_SCSS_change() need not be global. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2570 --- coregrind/vg_include.h | 1 - coregrind/vg_signals.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h index 36ca410039..0d1c37e943 100644 --- a/coregrind/vg_include.h +++ b/coregrind/vg_include.h @@ -988,7 +988,6 @@ extern void VG_(sigstartup_actions) ( void ); extern void VG_(deliver_signal) ( ThreadId tid, const vki_ksiginfo_t *, Bool async ); extern void VG_(unblock_host_signal) ( Int sigNo ); -extern void VG_(handle_SCSS_change) ( Bool force_update ); extern Bool VG_(is_sig_ign) ( Int sigNo ); diff --git a/coregrind/vg_signals.c b/coregrind/vg_signals.c index 974377339a..9f7d88938b 100644 --- a/coregrind/vg_signals.c +++ b/coregrind/vg_signals.c @@ -379,7 +379,7 @@ void calculate_SKSS_from_SCSS ( SKSS* dst ) After a possible SCSS change, update SKSS and the kernel itself. ------------------------------------------------------------------ */ -void VG_(handle_SCSS_change) ( Bool force_update ) +static void handle_SCSS_change ( Bool force_update ) { Int res, sig; SKSS skss_old; @@ -583,7 +583,7 @@ void VG_(do__NR_sigaction) ( ThreadId tid ) /* All happy bunnies ... */ if (new_act) { - VG_(handle_SCSS_change)( False /* lazy update */ ); + handle_SCSS_change( False /* lazy update */ ); } SET_SYSCALL_RETVAL(tid, 0); return; @@ -1914,7 +1914,7 @@ void VG_(deliver_signal) ( ThreadId tid, const vki_ksiginfo_t *info, Bool async /* Do the ONESHOT thing. */ handler->scss_handler = VKI_SIG_DFL; - VG_(handle_SCSS_change)( False /* lazy update */ ); + handle_SCSS_change( False /* lazy update */ ); } switch(tst->status) { @@ -2377,7 +2377,7 @@ void VG_(sigstartup_actions) ( void ) /* Calculate SKSS and apply it. This also sets the initial kernel mask we need to run with. */ - VG_(handle_SCSS_change)( True /* forced update */ ); + handle_SCSS_change( True /* forced update */ ); } -- 2.47.2