X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=strbuf.h;h=faec2291d9e622c76dcdb3ef13d0876c5e3e6f28;hb=b59fd2098e6606e1a696fc1cafe897e074ed6d6f;hp=36d61db65728f61188ef3bedbdbe88d0f2d9a0b9;hpb=27ee189163070f53a87e033171a45520f70b242e;p=git.git diff --git a/strbuf.h b/strbuf.h index 36d61db65..faec2291d 100644 --- a/strbuf.h +++ b/strbuf.h @@ -103,8 +103,8 @@ static inline void strbuf_addbuf(struct strbuf *sb, struct strbuf *sb2) { } extern void strbuf_adddup(struct strbuf *sb, size_t pos, size_t len); -typedef void (*expand_fn_t) (struct strbuf *sb, const char *placeholder, void *context); -extern void strbuf_expand(struct strbuf *sb, const char *format, const char **placeholders, expand_fn_t fn, void *context); +typedef size_t (*expand_fn_t) (struct strbuf *sb, const char *placeholder, void *context); +extern void strbuf_expand(struct strbuf *sb, const char *format, expand_fn_t fn, void *context); __attribute__((format(printf,2,3))) extern void strbuf_addf(struct strbuf *sb, const char *fmt, ...);