summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 16:14:47 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:42 +0100
commitb9cf55cfeae854cd90cd4bd7b55b7313f34af828 (patch)
tree452a36cd05f176ae0fbd9bbc58e857996a841235 /source3/passdb
parentd9f31fea6a31acb7fd02166a69ec575de4acec1b (diff)
downloadsamba-b9cf55cfeae854cd90cd4bd7b55b7313f34af828.tar.gz
samba-b9cf55cfeae854cd90cd4bd7b55b7313f34af828.tar.bz2
samba-b9cf55cfeae854cd90cd4bd7b55b7313f34af828.zip
s3-passdb: Remove obsolete signal type cast.
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_smbpasswd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index d584d0ea79..a327da4cac 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -69,7 +69,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;
}
@@ -86,7 +86,7 @@ static bool do_file_lock(int fd, int waitsecs, int type)
void (*oldsig_handler)(int);
gotalarm = 0;
- oldsig_handler = CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
+ oldsig_handler = CatchSignal(SIGALRM, gotalarm_sig);
lock.l_type = type;
lock.l_whence = SEEK_SET;
@@ -98,7 +98,7 @@ static bool do_file_lock(int fd, int waitsecs, int type)
/* Note we must *NOT* use sys_fcntl here ! JRA */
ret = fcntl(fd, SMB_F_SETLKW, &lock);
alarm(0);
- CatchSignal(SIGALRM, SIGNAL_CAST oldsig_handler);
+ CatchSignal(SIGALRM, oldsig_handler);
if (gotalarm && ret == -1) {
DEBUG(0, ("do_file_lock: failed to %s file.\n",