diff options
author | Jeremy Allison <jra@samba.org> | 1998-01-07 06:21:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-01-07 06:21:56 +0000 |
commit | 28aff043c4a3693a0c20e87c7ce11eb4bf285b78 (patch) | |
tree | caa3bf7cd5cf65610d3f8f8fe5c233cf106e97c8 /source/nmbd/nmbd_winsserver.c | |
parent | 800510a852db046bf88a88c966c80d71b474f4ef (diff) | |
download | samba-28aff043c4a3693a0c20e87c7ce11eb4bf285b78.tar.gz samba-28aff043c4a3693a0c20e87c7ce11eb4bf285b78.tar.xz samba-28aff043c4a3693a0c20e87c7ce11eb4bf285b78.zip |
includes.h: Added FreeBSD 3.x fixes. Added HPUX10.x fixes.
interface.c: Added netmask fix.
nmbd_nameregister.c: Fixed unitialised variable warnings.
nmbd_winsproxy.c: Fixed unitialised variable warnings.
nmbd_winsserver.c: Fixed DEC warnings.
print_svid.c: Fixed DEC warnings.
printing.c: Added LPRng fixes.
Jeremy.
Diffstat (limited to 'source/nmbd/nmbd_winsserver.c')
-rw-r--r-- | source/nmbd/nmbd_winsserver.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/nmbd/nmbd_winsserver.c b/source/nmbd/nmbd_winsserver.c index 725e6e3747a..4a631a79b71 100644 --- a/source/nmbd/nmbd_winsserver.c +++ b/source/nmbd/nmbd_winsserver.c @@ -784,7 +784,7 @@ is one of our (WINS server) names. Denying registration.\n", namestr(question) ) if(namerec != NULL) { char ud[sizeof(struct userdata_struct) + sizeof(struct packet_struct *)]; - struct userdata_struct *userdata = (struct userdata_struct *)&ud; + struct userdata_struct *userdata = (struct userdata_struct *)ud; /* * First send a WACK to the registering machine. @@ -1059,7 +1059,7 @@ is one of our (WINS server) names. Denying registration.\n", namestr(question) ) if(namerec != NULL) { char ud[sizeof(struct userdata_struct) + sizeof(struct packet_struct *)]; - struct userdata_struct *userdata = (struct userdata_struct *)&ud; + struct userdata_struct *userdata = (struct userdata_struct *)ud; /* * First send a WACK to the registering machine. @@ -1202,7 +1202,7 @@ void send_wins_name_query_response(int rcode, struct packet_struct *p, if(rcode == 0) { - int same_net_index; + int same_net_index = -1; ttl = (namerec->death_time != PERMANENT_TTL) ? namerec->death_time - p->timestamp : lp_max_wins_ttl(); @@ -1229,7 +1229,6 @@ void send_wins_name_query_response(int rcode, struct packet_struct *p, * ones we know the netmask for. */ - same_net_index = -1; i = 0; if(is_local_net(p->ip)) |