From: Jeremy Allison Date: Wed, 15 Jul 2020 18:48:30 +0000 (-0700) Subject: s3: lib: Cleanup - nothing uses ipstr_list_free(). Remove it. X-Git-Tag: talloc-2.3.2~1100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2371c45f11c91ef16b02d86cdc6f6d4f7624b356;p=thirdparty%2Fsamba.git s3: lib: Cleanup - nothing uses ipstr_list_free(). Remove it. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 12aa392abae..52d5c1cf852 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -635,7 +635,6 @@ char *ipstr_list_make(char **ipstr_list, const struct ip_service *ip_list, int ip_count); int ipstr_list_parse(const char *ipstr_list, struct ip_service **ip_list); -void ipstr_list_free(char* ipstr_list); uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr); uint64_t conv_str_size(const char * str); int asprintf_strupper_m(char **strp, const char *fmt, ...) diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index 8fc65675db9..6a4bbc7216f 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -177,17 +177,6 @@ int ipstr_list_parse(const char *ipstr_list, struct ip_service **ip_list) return count; } -/** - * Safely free ip string list - * - * @param ipstr_list ip string list to be freed - **/ - -void ipstr_list_free(char* ipstr_list) -{ - SAFE_FREE(ipstr_list); -} - #define NBTKEY_FMT "NBT/%s#%02X" /**