diff options
author | Corey Farrell <git@cfware.com> | 2017-11-18 20:50:48 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-11-18 20:50:48 -0500 |
commit | b4862e463c9848edf1aea62b31852ace16523ad0 (patch) | |
tree | 87d871cabf2193811de47970bc2599fa2fab9105 /main | |
parent | 4181b6f3777655efa5f0523a8d2ab2b0e5e566fb (diff) |
iostream: Fix ast_iostream_printf declaration.
This adds the printf attribute and changes 'fmt' from 'const void *' to
'const char *'. This resolves a warning from some compiler for
vsnprintf needing a literal string for format.
Change-Id: I71c33a8262590042ee451e1146760c10bb22fb78
Diffstat (limited to 'main')
-rw-r--r-- | main/iostream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/iostream.c b/main/iostream.c index 2a2601d38..d91863319 100644 --- a/main/iostream.c +++ b/main/iostream.c @@ -443,7 +443,7 @@ ssize_t ast_iostream_write(struct ast_iostream *stream, const void *buf, size_t } } -ssize_t ast_iostream_printf(struct ast_iostream *stream, const void *fmt, ...) +ssize_t ast_iostream_printf(struct ast_iostream *stream, const char *fmt, ...) { char sbuf[512], *buf = sbuf; int len, len2, ret = -1; |