Skip to content

Commit

Permalink
lwan_strbuf_append_printf() should have printf attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Jan 6, 2019
1 parent b3c81af commit a701b92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/lwan-strbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ void lwan_strbuf_reset(struct lwan_strbuf *s);

bool lwan_strbuf_append_char(struct lwan_strbuf *s, const char c);
bool lwan_strbuf_append_str(struct lwan_strbuf *s1, const char *s2, size_t sz);
bool lwan_strbuf_append_printf(struct lwan_strbuf *s, const char *fmt, ...);
bool lwan_strbuf_append_printf(struct lwan_strbuf *s, const char *fmt, ...)
__attribute__((format(printf, 2, 3)));

bool lwan_strbuf_set_static(struct lwan_strbuf *s1, const char *s2, size_t sz);
bool lwan_strbuf_set(struct lwan_strbuf *s1, const char *s2, size_t sz);
Expand Down

0 comments on commit a701b92

Please sign in to comment.