From e8498810dc7eb20ea4a652b75e2da194b604f740 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 9 Dec 2009 04:00:09 +0100 Subject: Consolidate code for splitting strings by separator There were two functions for parsing strings by a separator. This patch consolidates on the one previously used in confdb. This also allows stripping the tokens of whitespace. Fixes: #319 --- server/util/util.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/util/util.h') diff --git a/server/util/util.h b/server/util/util.h index 1c583e23..a639b192 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -229,7 +229,6 @@ errno_t check_and_open_readonly(const char *filename, int *fd, const uid_t uid, const gid_t gid, const mode_t mode); /* from util.c */ -int sss_split_list(TALLOC_CTX *memctx, const char *string, - const char *sep, char ***_list, int *c); - +int split_on_separator(TALLOC_CTX *mem_ctx, const char *str, + const char sep, bool trim, char ***_list, int *size); #endif /* __SSSD_UTIL_H__ */ -- cgit