svn commit: r209476 - in stable/8/sys: kern sys

John Baldwin jhb at FreeBSD.org
Wed Jun 23 18:00:20 UTC 2010


Author: jhb
Date: Wed Jun 23 18:00:19 2010
New Revision: 209476
URL: http://svn.freebsd.org/changeset/base/209476

Log:
  MFC 208390:
  Allow a const char * to be passed as the process name to kproc_kthread_add()
  without generating a warning.

Modified:
  stable/8/sys/kern/kern_kthread.c
  stable/8/sys/sys/kthread.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/ixgbe/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/kern/kern_kthread.c
==============================================================================
--- stable/8/sys/kern/kern_kthread.c	Wed Jun 23 17:56:51 2010	(r209475)
+++ stable/8/sys/kern/kern_kthread.c	Wed Jun 23 18:00:19 2010	(r209476)
@@ -386,7 +386,7 @@ kthread_suspend_check(struct thread *td)
 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: stable/8/sys/sys/kthread.h
==============================================================================
--- stable/8/sys/sys/kthread.h	Wed Jun 23 17:56:51 2010	(r209475)
+++ stable/8/sys/sys/kthread.h	Wed Jun 23 18:00:19 2010	(r209476)
@@ -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 **,


More information about the svn-src-all mailing list