From 6c2de6052d450fa36338ed0c082647b9d535a928 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 14:12:11 -0500 Subject: psxtests - Eliminate missing prototype warnings --- testsuites/psxtests/psxeintr_join/init.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psxeintr_join') diff --git a/testsuites/psxtests/psxeintr_join/init.c b/testsuites/psxtests/psxeintr_join/init.c index 7987de5139..62a358361b 100644 --- a/testsuites/psxtests/psxeintr_join/init.c +++ b/testsuites/psxtests/psxeintr_join/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2011. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,6 +23,13 @@ #define SIG_SUSPEND SIGUSR1 #define SIG_THR_RESTART SIGUSR2 +/* forward declarations to avoid warnings */ +void *POSIX_Init(void *argument); +static void print_sig_mask(const char * str); +void GC_suspend_handler(int sig); +void GC_restart_handler(int sig); +void *run(void *arg); + sem_t GC_suspend_ack_sem; static void print_sig_mask( const char * str ) @@ -53,7 +60,7 @@ void GC_restart_handler( int sig ) puts( "run in GC_restart_handler" ); } -void* run( void *arg ) +void *run( void *arg ) { int status; pthread_t id = *(pthread_t *)arg; -- cgit v1.2.3