summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-05-21 17:14:36 +0000
committerjhb <jhb@FreeBSD.org>2010-05-21 17:14:36 +0000
commitb7fc8e97f173c690a532a6b0d6cf03822538e8ba (patch)
treef5a552641622f1efad4af909335d26cb585c00e6 /sys/kern/kern_kthread.c
parentd60c486b8837161509dbd904a6a44af49249ef8a (diff)
downloadFreeBSD-src-b7fc8e97f173c690a532a6b0d6cf03822538e8ba.zip
FreeBSD-src-b7fc8e97f173c690a532a6b0d6cf03822538e8ba.tar.gz
Allow a const char * to be passed as the process name to kproc_kthread_add()
without generating a warning. MFC after: 1 month
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 341707a..264fc4a 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -418,7 +418,7 @@ kthread_suspend_check()
int
kproc_kthread_add(void (*func)(void *), void *arg,
struct proc **procptr, struct thread **tdptr,
- int flags, int pages, char * procname, const char *fmt, ...)
+ int flags, int pages, const char *procname, const char *fmt, ...)
{
int error;
va_list ap;
OpenPOWER on IntegriCloud