Const poisoning from ks_shortdesc.

This commit is contained in:
Bruce Evans 1997-11-21 11:37:03 +00:00
parent 358e851a59
commit 6881d20fbb
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
* $Id: kern_synch.c,v 1.38 1997/09/02 20:05:43 bde Exp $ * $Id: kern_synch.c,v 1.39 1997/09/21 22:00:14 gibbs Exp $
*/ */
#include "opt_ktrace.h" #include "opt_ktrace.h"
@ -327,7 +327,7 @@ int
tsleep(ident, priority, wmesg, timo) tsleep(ident, priority, wmesg, timo)
void *ident; void *ident;
int priority, timo; int priority, timo;
char *wmesg; const char *wmesg;
{ {
struct proc *p = curproc; struct proc *p = curproc;
int s, sig, catch = priority & PCATCH; int s, sig, catch = priority & PCATCH;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)proc.h 8.15 (Berkeley) 5/19/95 * @(#)proc.h 8.15 (Berkeley) 5/19/95
* $Id: proc.h,v 1.45 1997/10/12 20:26:03 phk Exp $ * $Id: proc.h,v 1.46 1997/11/06 19:29:45 phk Exp $
*/ */
#ifndef _SYS_PROC_H_ #ifndef _SYS_PROC_H_
@ -126,7 +126,7 @@ struct proc {
int p_cpticks; /* Ticks of cpu time. */ int p_cpticks; /* Ticks of cpu time. */
fixpt_t p_pctcpu; /* %cpu for this process during p_swtime */ fixpt_t p_pctcpu; /* %cpu for this process during p_swtime */
void *p_wchan; /* Sleep address. */ void *p_wchan; /* Sleep address. */
char *p_wmesg; /* Reason for sleep. */ const char *p_wmesg; /* Reason for sleep. */
u_int p_swtime; /* Time swapped in or out. */ u_int p_swtime; /* Time swapped in or out. */
u_int p_slptime; /* Time since last blocked. */ u_int p_slptime; /* Time since last blocked. */

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)systm.h 8.7 (Berkeley) 3/29/95 * @(#)systm.h 8.7 (Berkeley) 3/29/95
* $Id: systm.h,v 1.61 1997/10/10 18:15:47 phk Exp $ * $Id: systm.h,v 1.62 1997/11/18 15:16:54 bde Exp $
*/ */
#ifndef _SYS_SYSTM_H_ #ifndef _SYS_SYSTM_H_
@ -261,7 +261,7 @@ extern watchdog_tickle_fn wdog_tickler;
* Common `proc' functions are declared here so that proc.h can be included * Common `proc' functions are declared here so that proc.h can be included
* less often. * less often.
*/ */
int tsleep __P((void *chan, int pri, char *wmesg, int timo)); int tsleep __P((void *chan, int pri, const char *wmesg, int timo));
void wakeup __P((void *chan)); void wakeup __P((void *chan));
#endif /* !_SYS_SYSTM_H_ */ #endif /* !_SYS_SYSTM_H_ */