From a5e7c7da5e0226cac1ff07a2aa9767a1886f6a67 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 19 Mar 2002 10:56:46 +0000 Subject: [PATCH] Fix warnings on gcc-3.1+ where __func__ is a const char * instead of a string. --- sys/kern/subr_sbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c index 4553fcb41ff7..6c910e6ddaee 100644 --- a/sys/kern/subr_sbuf.c +++ b/sys/kern/subr_sbuf.c @@ -84,7 +84,7 @@ MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers"); */ #if defined(_KERNEL) && defined(INVARIANTS) static void -_assert_sbuf_integrity(char *fun, struct sbuf *s) +_assert_sbuf_integrity(const char *fun, struct sbuf *s) { KASSERT(s != NULL, ("%s called with a NULL sbuf pointer", fun)); @@ -95,7 +95,7 @@ _assert_sbuf_integrity(char *fun, struct sbuf *s) } static void -_assert_sbuf_state(char *fun, struct sbuf *s, int state) +_assert_sbuf_state(const char *fun, struct sbuf *s, int state) { KASSERT((s->s_flags & SBUF_FINISHED) == state, ("%s called with %sfinished or corrupt sbuf", fun,