Skip to content
Snippets Groups Projects
Commit 8115ab79 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "iostream: Fix ast_iostream_printf declaration."

parents 0e6e1fcc b4862e46
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,8 @@ ssize_t ast_iostream_read(struct ast_iostream *stream, void *buf, size_t count);
ssize_t ast_iostream_gets(struct ast_iostream *stream, char *buf, size_t count);
ssize_t ast_iostream_discard(struct ast_iostream *stream, size_t count);
ssize_t ast_iostream_write(struct ast_iostream *stream, const void *buf, size_t count);
ssize_t ast_iostream_printf(struct ast_iostream *stream, const void *fmt, ...);
ssize_t __attribute__((format(printf, 2, 3))) ast_iostream_printf(
struct ast_iostream *stream, const char *fmt, ...);
struct ast_iostream* ast_iostream_from_fd(int *fd);
int ast_iostream_start_tls(struct ast_iostream **stream, SSL_CTX *ctx, int client);
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment