diff options
author | Jeremy Allison <jra@samba.org> | 2001-02-25 02:14:49 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-02-25 02:14:49 +0000 |
commit | 1c8eb37534f885c7835f3971e5d28c9e89dd85d1 (patch) | |
tree | 65e500413e1b6a18bd1f6ef93fc42f06420ad4e5 /source3/libsmb | |
parent | f93bb0801ccd66a6a3709ad98afb3758ffd0c1d4 (diff) | |
download | samba-1c8eb37534f885c7835f3971e5d28c9e89dd85d1.tar.gz samba-1c8eb37534f885c7835f3971e5d28c9e89dd85d1.tar.bz2 samba-1c8eb37534f885c7835f3971e5d28c9e89dd85d1.zip |
Separated reg code into interface & implementation.
libsmb/namequery.c: Removed ununsed variables.
Jeremy.
(This used to be commit b857113f400551c57ac400a9cdc3c752085d107d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namequery.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index f6ada87840..01ec5e9b29 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -198,7 +198,7 @@ BOOL name_register(int fd, const char *name, int name_type, BOOL bcast, struct in_addr to_ip, int *count) { - int i, retries = 3, retry = bcast?250:2000; + int retries = 3; struct timeval tval; struct packet_struct p; struct packet_struct *p2; @@ -274,12 +274,8 @@ BOOL name_register(int fd, const char *name, int name_type, retries--; if ((p2 = receive_nmb_packet(fd, 10, nmb->header.name_trn_id))) { - struct nmb_packet *nmb2 = &p2->packet.nmb; debug_nmb_packet(p2); - - free(p2); /* No memory leaks ... */ - } return True; |