summaryrefslogtreecommitdiffstats
path: root/server/util/util.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-12-09 04:00:09 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-12-10 17:20:20 -0500
commite8498810dc7eb20ea4a652b75e2da194b604f740 (patch)
tree7b8c6736c9f57252f9b0da23d1784d893dd79783 /server/util/util.h
parent51a52431ed52e0312c680e52371882088482071f (diff)
downloadsssd-e8498810dc7eb20ea4a652b75e2da194b604f740.tar.gz
sssd-e8498810dc7eb20ea4a652b75e2da194b604f740.tar.xz
sssd-e8498810dc7eb20ea4a652b75e2da194b604f740.zip
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
Diffstat (limited to 'server/util/util.h')
-rw-r--r--server/util/util.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/util/util.h b/server/util/util.h
index 1c583e231..a639b1927 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__ */