Fix warnings on gcc-3.1+ where __func__ is a const char * instead of a
string.
This commit is contained in:
parent
ee764c7708
commit
4319b6e738
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user