summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_nameregister.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-06-23 08:15:05 +0000
committerChristopher R. Hertel <crh@samba.org>1998-06-23 08:15:05 +0000
commit7fda0a49cb665ba75c9071c1dc39fe93f103a9b5 (patch)
treebe963416e054853a7020f2882e1395679fa465fd /source3/nmbd/nmbd_nameregister.c
parent9d001d5c959d8fb5b4f14529e73ed2453035283b (diff)
downloadsamba-7fda0a49cb665ba75c9071c1dc39fe93f103a9b5.tar.gz
samba-7fda0a49cb665ba75c9071c1dc39fe93f103a9b5.tar.bz2
samba-7fda0a49cb665ba75c9071c1dc39fe93f103a9b5.zip
The function add_name_to_subnet(), in file nmbd_namelistdb.c, returns a
pointer to the newly constructed name list entry. In most cases, this return value is ignored. The two exceptions are in asyncdns.c and nmbd_winsproxy.c. Most of the calls which ignored the return value were not cast to void, so I added the cast. This helped me sort out which calls really did use the return value. I also discovered one case, in nmbd_winsserver.c, in which the return value was being stored to a variable which, in turn, was not used. Chris -)----- (This used to be commit 384122d165ed6d5d211a29e5a63a63bf5cd82c75)
Diffstat (limited to 'source3/nmbd/nmbd_nameregister.c')
-rw-r--r--source3/nmbd/nmbd_nameregister.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_nameregister.c b/source3/nmbd/nmbd_nameregister.c
index a4b8d4d65a..270a3ef6a5 100644
--- a/source3/nmbd/nmbd_nameregister.c
+++ b/source3/nmbd/nmbd_nameregister.c
@@ -277,11 +277,14 @@ static BOOL multihomed_register_name( struct nmb_name *nmbname, uint16 nb_flags,
return True;
}
- for(subrec = FIRST_SUBNET, i = 0; subrec; subrec = NEXT_SUBNET_EXCLUDING_UNICAST(subrec), i++ )
+ for( subrec = FIRST_SUBNET, i = 0;
+ subrec;
+ subrec = NEXT_SUBNET_EXCLUDING_UNICAST(subrec), i++ )
ip_list[i] = subrec->myip;
- add_name_to_subnet(unicast_subnet, nmbname->name, nmbname->name_type,
- nb_flags, lp_max_ttl(), SELF_NAME, num_ips, ip_list);
+ (void)add_name_to_subnet( unicast_subnet, nmbname->name, nmbname->name_type,
+ nb_flags, lp_max_ttl(), SELF_NAME,
+ num_ips, ip_list);
/* Now try and register the name, num_ips times. On the last time use
the given success and fail functions. */