Date: Fri, 21 May 2010 17:14:36 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208390 - in head/sys: kern sys Message-ID: <201005211714.o4LHEakp079034@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri May 21 17:14:36 2010 New Revision: 208390 URL: http://svn.freebsd.org/changeset/base/208390 Log: Allow a const char * to be passed as the process name to kproc_kthread_add() without generating a warning. MFC after: 1 month Modified: head/sys/kern/kern_kthread.c head/sys/sys/kthread.h Modified: head/sys/kern/kern_kthread.c ============================================================================== --- head/sys/kern/kern_kthread.c Fri May 21 17:10:52 2010 (r208389) +++ head/sys/kern/kern_kthread.c Fri May 21 17:14:36 2010 (r208390) @@ -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; Modified: head/sys/sys/kthread.h ============================================================================== --- head/sys/sys/kthread.h Fri May 21 17:10:52 2010 (r208389) +++ head/sys/sys/kthread.h Fri May 21 17:14:36 2010 (r208390) @@ -63,7 +63,7 @@ int kproc_kthread_add(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 **,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005211714.o4LHEakp079034>