From cf3a9741dc7427efb97eff09a3c197a906ce6767 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Sep 1998 21:43:48 +0000 Subject: Changes to test in configure if capabilities are enabled on a system. Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy. (This used to be commit e0567433bd72aec17bf5a54cc292701095d25f09) --- source3/nmbd/nmbd_winsserver.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'source3/nmbd/nmbd_winsserver.c') diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index cba3c1b308..80825579c4 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -173,7 +173,6 @@ BOOL initialise_wins(void) int type = 0; int nb_flags; int ttl; - enum name_source source; char *ptr; char *p; BOOL got_token; @@ -266,8 +265,6 @@ BOOL initialise_wins(void) { next_token(&ptr, ip_str, NULL, sizeof(ip_str)); ip_list[i] = *interpret_addr2(ip_str); - if (ip_equal(ip_list[i], ipzero)) - source = SELF_NAME; } next_token(&ptr,nb_flags_str,NULL, sizeof(nb_flags_str)); @@ -538,18 +535,10 @@ static void wins_register_query_fail(struct subnet_record *subrec, { struct userdata_struct *userdata = rrec->userdata; struct packet_struct *orig_reg_packet; - struct nmb_packet *nmb; struct name_record *namerec = NULL; - uint16 nb_flags; - BOOL group; memcpy((char *)&orig_reg_packet, userdata->data, sizeof(struct packet_struct *)); - nmb = &orig_reg_packet->packet.nmb; - - nb_flags = get_nb_flags(nmb->additional->rdata); - group = (nb_flags & NB_GROUP) ? True : False; - /* * We want to just add the name, as we now know the original owner * didn't want it. But we can't just do that as an arbitary @@ -1547,7 +1536,6 @@ void wins_write_database(BOOL background) { struct name_record *namerec; pstring fname, fnamenew; - static int child_pid; FILE *fp; @@ -1558,7 +1546,7 @@ void wins_write_database(BOOL background) doesn't block while this is done */ if (background) { CatchChild(); - if ((child_pid=fork())) { + if (fork()) { return; } } -- cgit