summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-12-19 22:33:43 -0800
committerJames Peach <jpeach@samba.org>2007-12-19 22:33:43 -0800
commit2ee96c7ee30ece5eeec97b545ac0f98fc3c00060 (patch)
treec53cbf2ea18b027cc31b3efdbe8e8cfad8f3cc54 /source3
parent2403b319a76c3b425d618a3ff937e7ff05d211b4 (diff)
downloadsamba-2ee96c7ee30ece5eeec97b545ac0f98fc3c00060.tar.gz
samba-2ee96c7ee30ece5eeec97b545ac0f98fc3c00060.tar.bz2
samba-2ee96c7ee30ece5eeec97b545ac0f98fc3c00060.zip
Fix a couple of warnings in mDNS registration. One of these is an
actual bug where we pass a pointer instead of a pointer to a pointer. (This used to be commit 36db6755103f01cb74bf4194fc81ca6d4b5320e4)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dnsregister.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/dnsregister.c b/source3/smbd/dnsregister.c
index 44bd39f64e..2319097ca5 100644
--- a/source3/smbd/dnsregister.c
+++ b/source3/smbd/dnsregister.c
@@ -41,7 +41,6 @@ struct dns_reg_state {
void dns_register_close(struct dns_reg_state **dns_state_ptr)
{
- int mdnsd_conn_fd;
struct dns_reg_state *dns_state = *dns_state_ptr;
if (dns_state == NULL) {
@@ -74,7 +73,7 @@ static void dns_register_smbd_retry(struct event_context *ctx,
/* Clear previous registration state to force new
* registration attempt. Clears event handler.
*/
- dns_register_close(dns_state);
+ dns_register_close(&dns_state);
}
static void schedule_dns_register_smbd_retry(struct dns_reg_state *dns_state,