X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=strbuf.h;h=faec2291d9e622c76dcdb3ef13d0876c5e3e6f28;hb=fae09a8084c9b51632726523b477a78dd28d7d7e;hp=36d61db65728f61188ef3bedbdbe88d0f2d9a0b9;hpb=cab31fa076253fcfafa7572c24e40f12a1e09ae3;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, ...);