mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user