]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Comment out wrapper function internal_resolve_name(). Rename _internal_re...
authorJeremy Allison <jra@samba.org>
Thu, 27 Aug 2020 18:14:10 +0000 (11:14 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:43 +0000 (13:23 +0000)
We can now remove the wrapper.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/namequery.c

index ac35567383a728dcb4dd48a68640bb0a2e964641..7ad202e1af8e69e20a81262f66f122e14cb59cb5 100644 (file)
@@ -3148,7 +3148,7 @@ static const char **filter_out_nbt_lookup(TALLOC_CTX *mem_ctx,
 }
 
 /*******************************************************************
Internal interface to resolve a name into an IP address.
Samba interface to resolve a name into an IP address.
  Use this function if the string is either an IP address, DNS
  or host name or NetBIOS name. This uses the name switch in the
  smb.conf to determine the order of name resolution.
@@ -3158,7 +3158,7 @@ static const char **filter_out_nbt_lookup(TALLOC_CTX *mem_ctx,
  resolve_hosts() when looking up DC's via SRV RR entries in DNS
 **********************************************************************/
 
-static NTSTATUS _internal_resolve_name(TALLOC_CTX *ctx,
+NTSTATUS internal_resolve_name(TALLOC_CTX *ctx,
                                const char *name,
                                int name_type,
                                const char *sitename,
@@ -3457,6 +3457,7 @@ static NTSTATUS _internal_resolve_name(TALLOC_CTX *ctx,
        return status;
 }
 
+#if 0
 /********************************************************
  Wrapper function for _internal_resolve_name() that returns
  talloc'ed memory.
@@ -3489,6 +3490,7 @@ NTSTATUS internal_resolve_name(TALLOC_CTX *ctx,
        *return_iplist = iplist;
        return NT_STATUS_OK;
 }
+#endif
 
 /********************************************************
  Internal interface to resolve a name into one IP address.