diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -282,13 +282,13 @@ int parse_comment_reply(void *ctx, void *ret, const keyword *key, keyword_val va typedef int (parse_callback)(void **ret, void *ctx, char *buf); -static int parse_colon_key_value_file(void *ret, void *ctx, const keyword **keywords, char *buf, parse_callback *parse_cb) { +static int parse_key_value_file(void *ret, void *ctx, const keyword **keywords, char *buf, const char *delm, parse_callback *parse_cb) { if (buf != NULL) { int ret_val = 0; for (;;) { char *lhs, *rhs; - /* Find the keyword before the colon. */ - lhs = strtok_r(skip_whitespace(buf), ":", &buf); + /* Find the keyword before the delimiter(s). */ + lhs = strtok_r(skip_whitespace(buf), delm, &buf); /* Remove any whitespace ahead of us. */ lhs = strtok_r(lhs, " \t\v\r\n", &rhs); |