Fix a couple of warnings in mDNS registration. One of these is an
authorJames Peach <jpeach@samba.org>
Thu, 20 Dec 2007 06:33:43 +0000 (22:33 -0800)
committerJames Peach <jpeach@samba.org>
Thu, 20 Dec 2007 06:33:43 +0000 (22:33 -0800)
actual bug where we pass a pointer instead of a pointer to a pointer.
(This used to be commit 36db6755103f01cb74bf4194fc81ca6d4b5320e4)

source3/smbd/dnsregister.c

index 44bd39f64e9353c7b3335a9fefd79b7572fb264d..2319097ca564bd6371b4541c050b871c0070c7ec 100644 (file)
@@ -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,