diff options
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/asyncdns.c | 6 | ||||
-rw-r--r-- | source3/nmbd/nmbd.c | 6 | ||||
-rw-r--r-- | source3/nmbd/nmbd_mynames.c | 4 | ||||
-rw-r--r-- | source3/nmbd/nmbd_namelistdb.c | 2 | ||||
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 2 | ||||
-rw-r--r-- | source3/nmbd/nmbd_sendannounce.c | 2 | ||||
-rw-r--r-- | source3/nmbd/nmbd_subnetdb.c | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c index 3fb16a08e9..6019819793 100644 --- a/source3/nmbd/asyncdns.c +++ b/source3/nmbd/asyncdns.c @@ -110,7 +110,7 @@ static void asyncdns_process(void) WINS db that our parent is going to write. **************************************************************************** */ -static int sig_term() +static int sig_term(void) { _exit(0); /* Keep compiler happy.. */ @@ -122,7 +122,7 @@ static int sig_term() child so we don't get child async dns processes lying around, causing trouble. ****************************************************************************/ -void kill_async_dns_child() +void kill_async_dns_child(void) { if(child_pid != 0 && child_pid != -1) kill(child_pid, SIGTERM); @@ -342,7 +342,7 @@ BOOL queue_dns_query(struct packet_struct *p,struct nmb_name *question, /*************************************************************************** With sync dns there is no child to kill on SIGTERM. ****************************************************************************/ -void kill_async_dns_child() +void kill_async_dns_child(void) { return; } diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 837f98e8bb..8373997e64 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -61,7 +61,7 @@ extern struct in_addr ipzero; /**************************************************************************** ** catch a sigterm **************************************************************************** */ -static int sig_term() +static int sig_term(void) { BlockSignals(True,SIGTERM); @@ -441,7 +441,7 @@ static BOOL open_sockets(BOOL isdaemon, int port) /**************************************************************************** ** initialise connect, service and file structs **************************************************************************** */ -static BOOL init_structs() +static BOOL init_structs(void) { extern fstring local_machine; char *p, *ptr; @@ -577,7 +577,7 @@ int main(int argc,char *argv[]) argc--; } - fault_setup( fault_continue ); + fault_setup((void (*)(void *))fault_continue ); signal( SIGHUP, SIGNAL_CAST sig_hup ); signal( SIGTERM, SIGNAL_CAST sig_term ); diff --git a/source3/nmbd/nmbd_mynames.c b/source3/nmbd/nmbd_mynames.c index 30804ab807..cf21fafd87 100644 --- a/source3/nmbd/nmbd_mynames.c +++ b/source3/nmbd/nmbd_mynames.c @@ -49,7 +49,7 @@ static void my_name_register_failed(struct subnet_record *subrec, Also add the magic Samba names. **************************************************************************/ -BOOL register_my_workgroup_and_names() +BOOL register_my_workgroup_and_names(void) { struct subnet_record *subrec; struct work_record *work; @@ -143,7 +143,7 @@ Exiting.\n", myworkgroup, subrec->subnet_name)); Remove all the names we registered. **************************************************************************/ -void release_my_names() +void release_my_names(void) { struct subnet_record *subrec; diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c index 2237fc504d..b37cac10dc 100644 --- a/source3/nmbd/nmbd_namelistdb.c +++ b/source3/nmbd/nmbd_namelistdb.c @@ -551,7 +551,7 @@ static void dump_subnet_namelist( struct subnet_record *subrec, FILE *fp) into a file. Initiated by SIGHUP - used to debug the state of the namelists. **************************************************************************/ -void dump_all_namelists() +void dump_all_namelists(void) { fstring fname; FILE *fp; diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index cafed5f79a..19c61a877a 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -1488,7 +1488,7 @@ found for id = %hu. Ignoring packet.\n", nmb->header.name_trn_id)); Run elements off the packet queue till its empty ******************************************************************/ -void run_packet_queue() +void run_packet_queue(void) { struct packet_struct *p; diff --git a/source3/nmbd/nmbd_sendannounce.c b/source3/nmbd/nmbd_sendannounce.c index e39e251496..48072650c2 100644 --- a/source3/nmbd/nmbd_sendannounce.c +++ b/source3/nmbd/nmbd_sendannounce.c @@ -372,7 +372,7 @@ static time_t announce_timer_last=0; immediately. ****************************************************************************/ -void reset_announce_timer() +void reset_announce_timer(void) { announce_timer_last = time(NULL) - (CHECK_TIME_MST_ANNOUNCE * 60); } diff --git a/source3/nmbd/nmbd_subnetdb.c b/source3/nmbd/nmbd_subnetdb.c index e10ddc2c6a..d8e8dd4ab9 100644 --- a/source3/nmbd/nmbd_subnetdb.c +++ b/source3/nmbd/nmbd_subnetdb.c @@ -164,7 +164,7 @@ for port %d. Error was %s\n", inet_ntoa(myip), DGRAM_PORT, strerror(errno))); Create subnet entries. **************************************************************************/ -BOOL create_subnets() +BOOL create_subnets(void) { int num_interfaces = iface_count(); int i; @@ -265,7 +265,7 @@ BOOL create_subnets() Function to tell us if we can use the unicast subnet. ******************************************************************/ -BOOL we_are_a_wins_client() +BOOL we_are_a_wins_client(void) { static int cache_we_are_a_wins_client = -1; |