Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2015 12:52:29 +0000 (UTC)
From:      Mark Murray <markm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284911 - head/sys/sys
Message-ID:  <201506281252.t5SCqTAd093551@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markm
Date: Sun Jun 28 12:52:28 2015
New Revision: 284911
URL: https://svnweb.freebsd.org/changeset/base/284911

Log:
  Add const to char * pointers. This breaks nothing, and means const
  chars can be passed with no warnings.

Modified:
  head/sys/sys/kthread.h

Modified: head/sys/sys/kthread.h
==============================================================================
--- head/sys/sys/kthread.h	Sun Jun 28 10:51:08 2015	(r284910)
+++ head/sys/sys/kthread.h	Sun Jun 28 12:52:28 2015	(r284911)
@@ -37,14 +37,14 @@
  * Note: global_procpp may be NULL for no global save area.
  */
 struct kproc_desc {
-	char		*arg0;			/* arg 0 (for 'ps' listing) */
-	void		(*func)(void);	/* "main" for kernel process */
+	const char	*arg0;			/* arg 0 (for 'ps' listing) */
+	void		(*func)(void);		/* "main" for kernel process */
 	struct proc	**global_procpp;	/* ptr to proc ptr save area */
 };
 
  /* A kernel thread descriptor; used to start "internal" daemons. */
 struct kthread_desc {
-	char		*arg0;			/* arg 0 (for 'ps' listing) */
+	const char	*arg0;			/* arg 0 (for 'ps' listing) */
 	void		(*func)(void);		/* "main" for kernel thread */
 	struct thread	**global_threadpp;	/* ptr to thread ptr save area */
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506281252.t5SCqTAd093551>