Quote:
Originally Posted by jacques83
I am using the signal function, and passing it a function named quit procedure...I get the following warning....
passing arg2 of signal from incompatible pointer type...
void quit_procedure(void); //this is the way i define my prototype...
signal(SIGINT, quit_procedure);
Please guide me..How can i eliminate this warning?
Here as told .. the function is of type
signal(int sig,<func-name>)
Here func-name(int sig){ }
Here the signal handler function, takes the signal number as argument ...
If u try to print the variable,it ll give the signal number //Try!
So whether you use that variable or not ,u shd declare dut variable