Constify the format string.
Submitted by: Mike Barcroft <mike@q9media.com>
This commit is contained in:
parent
4f0b1b7805
commit
2687c8741b
@ -296,7 +296,7 @@ sbuf_cpy(struct sbuf *s, const char *str)
|
|||||||
* Format the given arguments and append the resulting string to an sbuf.
|
* Format the given arguments and append the resulting string to an sbuf.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
sbuf_printf(struct sbuf *s, char *fmt, ...)
|
sbuf_printf(struct sbuf *s, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int len;
|
int len;
|
||||||
|
@ -58,7 +58,7 @@ int sbuf_bcat(struct sbuf *s, const char *str, size_t len);
|
|||||||
int sbuf_bcpy(struct sbuf *s, const char *str, size_t len);
|
int sbuf_bcpy(struct sbuf *s, const char *str, size_t len);
|
||||||
int sbuf_cat(struct sbuf *s, const char *str);
|
int sbuf_cat(struct sbuf *s, const char *str);
|
||||||
int sbuf_cpy(struct sbuf *s, const char *str);
|
int sbuf_cpy(struct sbuf *s, const char *str);
|
||||||
int sbuf_printf(struct sbuf *s, char *fmt, ...);
|
int sbuf_printf(struct sbuf *s, const char *fmt, ...);
|
||||||
int sbuf_putc(struct sbuf *s, int c);
|
int sbuf_putc(struct sbuf *s, int c);
|
||||||
int sbuf_overflowed(struct sbuf *s);
|
int sbuf_overflowed(struct sbuf *s);
|
||||||
void sbuf_finish(struct sbuf *s);
|
void sbuf_finish(struct sbuf *s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user