diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-06-08 03:44:13 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-06-08 03:44:13 +0000 |
commit | f3e26636452de78e1acb68de3823fe031aee4b3e (patch) | |
tree | 0b014743443b92afdae179f6dee865ebc7aff8da | |
parent | 88d88f5d0d23c8c849739b9441872734c0431c99 (diff) | |
download | samba-f3e26636452de78e1acb68de3823fe031aee4b3e.tar.gz samba-f3e26636452de78e1acb68de3823fe031aee4b3e.tar.bz2 samba-f3e26636452de78e1acb68de3823fe031aee4b3e.zip |
Cosmetic. Added a cast to (void) to a call to add_name_to_subnet() since
the return value was being ignored anyway. SGI's lint said:
function returns value which is sometimes ignored
add_name_to_subnet
Chris -)-----
(This used to be commit ae706bff10cc77f06b8069e637ec9768d6a46966)
-rw-r--r-- | source3/nmbd/asyncdns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c index 6019819793..3d2d5303de 100644 --- a/source3/nmbd/asyncdns.c +++ b/source3/nmbd/asyncdns.c @@ -35,16 +35,16 @@ static struct name_record *add_dns_result(struct nmb_name *question, struct in_a if (!addr.s_addr) { /* add the fail to WINS cache of names. give it 1 hour in the cache */ DEBUG(3,("add_dns_result: Negative DNS answer for %s\n", qname)); - add_name_to_subnet(wins_server_subnet,qname,name_type, - NB_ACTIVE, 60*60, DNSFAIL_NAME, 1, &addr); - return NULL; + (void)add_name_to_subnet( wins_server_subnet, qname, name_type, + NB_ACTIVE, 60*60, DNSFAIL_NAME, 1, &addr ); + return( NULL ); } /* add it to our WINS cache of names. give it 2 hours in the cache */ DEBUG(3,("add_dns_result: DNS gave answer for %s of %s\n", qname, inet_ntoa(addr))); - return add_name_to_subnet(wins_server_subnet,qname,name_type, - NB_ACTIVE, 2*60*60, DNS_NAME, 1, &addr); + return( add_name_to_subnet( wins_server_subnet, qname, name_type, + NB_ACTIVE, 2*60*60, DNS_NAME, 1, &addr ) ); } |