diff options
author | Martin Pool <mbp@samba.org> | 2001-12-19 05:02:42 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-12-19 05:02:42 +0000 |
commit | e6be48671d520f952be0b6dc0848569d0d834179 (patch) | |
tree | 57dde63edf9eb9a8c3b2fbd6dabb45b52fd8a909 /source/include/talloc.h | |
parent | 5b6c22a209a26cb9adbf6d7733d396038c729633 (diff) | |
download | samba-e6be48671d520f952be0b6dc0848569d0d834179.tar.gz samba-e6be48671d520f952be0b6dc0848569d0d834179.tar.xz samba-e6be48671d520f952be0b6dc0848569d0d834179.zip |
Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,
talloc_vasprintf.
Diffstat (limited to 'source/include/talloc.h')
-rw-r--r-- | source/include/talloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/include/talloc.h b/source/include/talloc.h index 8e20cc028ad..fb2fb6a0c39 100644 --- a/source/include/talloc.h +++ b/source/include/talloc.h @@ -42,4 +42,12 @@ typedef struct { char *name; } TALLOC_CTX; +TALLOC_CTX *talloc_init_named(char const *fmt, ...) PRINTF_ATTRIBUTE(1, 2); + +char *talloc_vasprintf(TALLOC_CTX *t, const char *fmt, va_list ap) + PRINTF_ATTRIBUTE(2, 0); + +char *talloc_asprintf(TALLOC_CTX *t, const char *fmt, ...) + PRINTF_ATTRIBUTE(2, 3); + #endif |