Related to rhbz#951520.
Signed-off-by: Martin Milata <mmilata(a)redhat.com>
---
lib/strbuf.h | 4 ++--
lib/utils.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/strbuf.h b/lib/strbuf.h
index 9a5091f..66a9a2c 100644
--- a/lib/strbuf.h
+++ b/lib/strbuf.h
@@ -116,7 +116,7 @@ btp_strbuf_prepend_str(struct btp_strbuf *strbuf,
*/
struct btp_strbuf *
btp_strbuf_append_strf(struct btp_strbuf *strbuf,
- const char *format, ...);
+ const char *format, ...) __attribute__((format(printf, 2, 3)));
/**
* Same as btp_strbuf_append_strf except that va_list is used instead of
@@ -133,7 +133,7 @@ btp_strbuf_append_strfv(struct btp_strbuf *strbuf,
*/
struct btp_strbuf *
btp_strbuf_prepend_strf(struct btp_strbuf *strbuf,
- const char *format, ...);
+ const char *format, ...) __attribute__((format(printf, 2, 3)));
/**
* Same as btp_strbuf_prepend_strf except that va_list is used instead of
diff --git a/lib/utils.h b/lib/utils.h
index 5c9b6a5..8071732 100644
--- a/lib/utils.h
+++ b/lib/utils.h
@@ -72,7 +72,7 @@ btp_vasprintf(const char *format, va_list p);
* Never returns NULL.
*/
char *
-btp_asprintf(const char *format, ...);
+btp_asprintf(const char *format, ...) __attribute__((format(printf, 1, 2)));
/**
* Never returns NULL.
--
1.7.11.7