"handler" should return RETSIGTYPE, not void

This commit is contained in:
Hallvard Furuseth 1998-11-22 05:10:33 +00:00
parent 6f92e197dc
commit 45834c2ddb

View File

@ -187,7 +187,7 @@ load_editor( void )
}
else if (pid > 0) {
/* parent - wait until the child proc is done editing */
void (*handler)();
RETSIGTYPE (*handler)();
handler = SIGNAL(SIGINT, SIG_IGN);
(void) wait(&status);
(void) SIGNAL(SIGINT, handler);