s3-print: Remove obsolete signal type cast.
authorAndreas Schneider <asn@redhat.com>
Fri, 19 Feb 2010 15:13:46 +0000 (16:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Feb 2010 11:23:42 +0000 (12:23 +0100)
source3/printing/print_cups.c

index 7d8248e428596ecac31edc0b55c71bba0c23d21f..804173f40f61019c0b97ed94f3b3c27f3a10e65d 100644 (file)
@@ -35,7 +35,7 @@ static SIG_ATOMIC_T gotalarm;
  Signal function to tell us we timed out.
 ****************************************************************/
 
-static void gotalarm_sig(void)
+static void gotalarm_sig(int signum)
 {
         gotalarm = 1;
 }
@@ -89,7 +89,7 @@ static http_t *cups_connect(TALLOC_CTX *frame)
        gotalarm = 0;
 
        if (timeout) {
-                CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
+                CatchSignal(SIGALRM, gotalarm_sig);
                 alarm(timeout);
         }
 
@@ -100,7 +100,7 @@ static http_t *cups_connect(TALLOC_CTX *frame)
 #endif
 
 
-       CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
+       CatchSignal(SIGALRM, SIG_IGN);
         alarm(0);
 
        if (http == NULL) {