Allow a const char * to be passed as the process name to kproc_kthread_add()

without generating a warning.

MFC after:	1 month
This commit is contained in:
John Baldwin 2010-05-21 17:14:36 +00:00
parent 8b10473d30
commit 07969f1d4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208390
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -63,7 +63,7 @@ int kproc_kthread_add(void (*)(void *), void *,
struct proc **,
struct thread **,
int flags, int pages,
char * procname, const char *, ...) __printflike(8, 9);
const char *procname, const char *, ...) __printflike(8, 9);
int kthread_add(void (*)(void *), void *,
struct proc *, struct thread **,