summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 16:13:46 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:42 +0100
commitd9f31fea6a31acb7fd02166a69ec575de4acec1b (patch)
tree8887e7f66775d9b337f7a35543204c4d2e051930
parentf924b7749280b31ece19885de1c3ad1bd71942ac (diff)
downloadsamba-d9f31fea6a31acb7fd02166a69ec575de4acec1b.tar.gz
samba-d9f31fea6a31acb7fd02166a69ec575de4acec1b.tar.bz2
samba-d9f31fea6a31acb7fd02166a69ec575de4acec1b.zip
s3-print: Remove obsolete signal type cast.
-rw-r--r--source3/printing/print_cups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 7d8248e428..804173f40f 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -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) {