diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
commit | cf3a9741dc7427efb97eff09a3c197a906ce6767 (patch) | |
tree | a5ca09216db91089dd5c2be34751733c4dbff2be /source3/nmbd/nmbd_winsserver.c | |
parent | cdaa53e3ef7e9bbb7dedaa82d54f730085b9250c (diff) | |
download | samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.gz samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.bz2 samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.zip |
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)
Diffstat (limited to 'source3/nmbd/nmbd_winsserver.c')
-rw-r--r-- | source3/nmbd/nmbd_winsserver.c | 14 |
1 files changed, 1 insertions, 13 deletions
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; } } |