summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/signal12.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/signal12.c')
-rw-r--r--testsuites/psxtests/psxhdrs/signal12.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/signal12.c b/testsuites/psxtests/psxhdrs/signal12.c
index 555354b6da..ef7f53841a 100644
--- a/testsuites/psxtests/psxhdrs/signal12.c
+++ b/testsuites/psxtests/psxhdrs/signal12.c
@@ -18,9 +18,9 @@
#include <signal.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
void (*signal_function_pointer)(int);
int signal_number;
@@ -28,4 +28,6 @@ void test( void )
signal_number = SIGALRM;
signal_function_pointer = signal( signal_number, SIG_IGN );
+
+ return (signal_function_pointer == SIG_ERR) ? -1 : 0;
}