aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_sbuf.c2
-rw-r--r--sys/sys/sbuf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c
index 942446dec7db..3c3b93b3169e 100644
--- a/sys/kern/subr_sbuf.c
+++ b/sys/kern/subr_sbuf.c
@@ -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;
diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h
index 80d413b1f240..20f39c2d422f 100644
--- a/sys/sys/sbuf.h
+++ b/sys/sys/sbuf.h
@@ -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);