diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
commit | af5633117326edd60450c53218694c3e0a895639 (patch) | |
tree | b6879fc1b21fcf25e8f558cc4d83f3c02404bbec /mandoc_aux.h | |
parent | 0d64a6e6bb89ff458faef3450acd365244bcf4a8 (diff) | |
download | mandoc-af5633117326edd60450c53218694c3e0a895639.tar.gz |
Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.
While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.
Diffstat (limited to 'mandoc_aux.h')
-rw-r--r-- | mandoc_aux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc_aux.h b/mandoc_aux.h index feb84994..b6a70ae9 100644 --- a/mandoc_aux.h +++ b/mandoc_aux.h @@ -16,7 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -int mandoc_asprintf(char **, const char *, ...); +int mandoc_asprintf(char **, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); void *mandoc_calloc(size_t, size_t); void *mandoc_malloc(size_t); void *mandoc_realloc(void *, size_t); |