Constify the format string.

Submitted by:	Mike Barcroft <mike@q9media.com>
This commit is contained in:
Dag-Erling Smørgrav 2001-07-03 21:46:43 +00:00
parent 4f0b1b7805
commit 2687c8741b
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ sbuf_cpy(struct sbuf *s, const char *str)
* Format the given arguments and append the resulting string to an sbuf.
*/
int
sbuf_printf(struct sbuf *s, char *fmt, ...)
sbuf_printf(struct sbuf *s, const char *fmt, ...)
{
va_list ap;
int len;

View File

@ -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_cat(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_overflowed(struct sbuf *s);
void sbuf_finish(struct sbuf *s);