Remove compiler warning

cast between incompatible function types from
‘void (*)(int,  int)’ to ‘void (*)(int)’
This commit is contained in:
Holger Vogt 2020-12-22 12:26:06 +01:00
parent 19fa671832
commit 2359f28812
2 changed files with 2 additions and 4 deletions

View File

@ -104,10 +104,8 @@ ft_sigintr(void)
RETSIGTYPE
sigfloat(int sig, int code)
sigfloat(int code)
{
NG_IGNORE(sig);
fperror("Error", code);
rewind(cp_out);
(void) signal(SIGFPE, (SIGNAL_FUNCTION) sigfloat);

View File

@ -7,7 +7,7 @@
#define ngspice_SIGNAL_HANDLER_H
RETSIGTYPE ft_sigintr(void);
RETSIGTYPE sigfloat(int sig, int code);
RETSIGTYPE sigfloat(int code);
RETSIGTYPE sigstop(void);
RETSIGTYPE sigcont(void);
RETSIGTYPE sigill(void);