Topic: Trying to complile this on FreeBSD C++ help

I've found this file that is suppose to remove bad frames from mp3 files.

mp3fixer

I'm trying to compile this and I get this error:
mp3fixer.c: In funtion `sigproc':
mp3fixer.c: error: cast specifies funtion type

Here is the function...

void sigproc(void){
 signal(SIGINT,(__sighandler_t)sigproc);
 if(cnt >=1){
  fprint(stderr, "\nCaught SIGINT signal. Cleaning up...\n");
  bfclose(out);
  unlink(ofilename);
}

My C/C++ is way to rusty for this one, can someone show me the light....

"An educator never says what he himself thinks, but only that which he thinks it is good for those whom he is educating to hear."
-Nietzsche

Re: Trying to complile this on FreeBSD C++ help

Change (__sighandler_t) to (sig_t).

Re: Trying to complile this on FreeBSD C++ help

Thanks Maxlor, "you the man Dog!"

But the app doesn't seem to work correctly sad

"An educator never says what he himself thinks, but only that which he thinks it is good for those whom he is educating to hear."
-Nietzsche