mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
s3:lib: remove unused str_list_sub_basic()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
ff35160dc6
commit
848cd4c460
@ -620,8 +620,6 @@ size_t strlen_m(const char *s);
|
|||||||
size_t strlen_m_term(const char *s);
|
size_t strlen_m_term(const char *s);
|
||||||
size_t strlen_m_term_null(const char *s);
|
size_t strlen_m_term_null(const char *s);
|
||||||
int fstr_sprintf(fstring s, const char *fmt, ...);
|
int fstr_sprintf(fstring s, const char *fmt, ...);
|
||||||
bool str_list_sub_basic( char **list, const char *smb_name,
|
|
||||||
const char *domain_name );
|
|
||||||
bool str_list_substitute(char **list, const char *pattern, const char *insert);
|
bool str_list_substitute(char **list, const char *pattern, const char *insert);
|
||||||
|
|
||||||
char *ipstr_list_make(char **ipstr_list,
|
char *ipstr_list_make(char **ipstr_list,
|
||||||
|
@ -880,32 +880,3 @@ char *talloc_sub_full(TALLOC_CTX *ctx,
|
|||||||
TALLOC_FREE(a_string);
|
TALLOC_FREE(a_string);
|
||||||
return ret_string;
|
return ret_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
|
||||||
version of standard_sub_basic() for string lists; uses talloc_sub_basic()
|
|
||||||
for the work
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
bool str_list_sub_basic( char **list, const char *smb_name,
|
|
||||||
const char *domain_name )
|
|
||||||
{
|
|
||||||
TALLOC_CTX *ctx = list;
|
|
||||||
char *s, *tmpstr;
|
|
||||||
|
|
||||||
while ( *list ) {
|
|
||||||
s = *list;
|
|
||||||
tmpstr = talloc_sub_basic(ctx, smb_name, domain_name, s);
|
|
||||||
if ( !tmpstr ) {
|
|
||||||
DEBUG(0,("str_list_sub_basic: "
|
|
||||||
"talloc_sub_basic() return NULL!\n"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
TALLOC_FREE(*list);
|
|
||||||
*list = tmpstr;
|
|
||||||
|
|
||||||
list++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user