summaryrefslogtreecommitdiff
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:27 -0500
commit6730ad84968681d86ff7d82751fe886a2f138673 (patch)
tree509eff4b47b8aa1f96444384a6029ecda13a611e /server/util/util.h
parentcdfea28842f2ac05808f18240ca0bd48747ea837 (diff)
downloadsssd-6730ad84968681d86ff7d82751fe886a2f138673.tar.gz
sssd-6730ad84968681d86ff7d82751fe886a2f138673.tar.bz2
sssd-6730ad84968681d86ff7d82751fe886a2f138673.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 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__ */