Make wmesg arguments to various functions const.
This commit is contained in:
parent
4971f40228
commit
7f35228e7e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_lock.c,v 1.3 1997/07/06 22:51:59 fvdl Exp $ */
|
||||
/* $NetBSD: kern_lock.c,v 1.4 1997/10/09 12:49:44 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
|
@ -115,7 +115,7 @@ void
|
|||
lockinit(lkp, prio, wmesg, timo, flags)
|
||||
struct lock *lkp;
|
||||
int prio;
|
||||
char *wmesg;
|
||||
const char *wmesg;
|
||||
int timo;
|
||||
int flags;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_synch.c,v 1.44 1997/05/07 18:49:10 gwr Exp $ */
|
||||
/* $NetBSD: kern_synch.c,v 1.45 1997/10/09 12:49:48 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1991, 1993
|
||||
|
@ -289,7 +289,7 @@ int
|
|||
tsleep(ident, priority, wmesg, timo)
|
||||
void *ident;
|
||||
int priority, timo;
|
||||
char *wmesg;
|
||||
const char *wmesg;
|
||||
{
|
||||
register struct proc *p = curproc;
|
||||
register struct slpque *qp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tty.c,v 1.96 1997/06/20 10:50:11 kleink Exp $ */
|
||||
/* $NetBSD: tty.c,v 1.97 1997/10/09 12:49:52 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1991, 1993
|
||||
|
@ -2073,7 +2073,7 @@ ttysleep(tp, chan, pri, wmesg, timo)
|
|||
struct tty *tp;
|
||||
void *chan;
|
||||
int pri, timo;
|
||||
char *wmesg;
|
||||
const char *wmesg;
|
||||
{
|
||||
int error;
|
||||
short gen;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lock.h,v 1.3 1997/07/06 22:53:14 fvdl Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.4 1997/10/09 12:49:56 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
|
@ -64,7 +64,7 @@ struct lock {
|
|||
int lk_waitcount; /* # of processes sleeping for lock */
|
||||
short lk_exclusivecount; /* # of recursive exclusive locks */
|
||||
short lk_prio; /* priority at which to sleep */
|
||||
char *lk_wmesg; /* resource sleeping (for tsleep) */
|
||||
const char *lk_wmesg; /* resource sleeping (for tsleep) */
|
||||
int lk_timo; /* maximum sleep time (for tsleep) */
|
||||
pid_t lk_lockholder; /* pid of exclusive lock holder */
|
||||
};
|
||||
|
@ -166,7 +166,7 @@ struct lock {
|
|||
|
||||
struct proc;
|
||||
|
||||
void lockinit __P((struct lock *, int prio, char *wmesg, int timo,
|
||||
void lockinit __P((struct lock *, int prio, const char *wmesg, int timo,
|
||||
int flags));
|
||||
int lockmgr __P((__volatile struct lock *, u_int flags,
|
||||
struct simplelock *, struct proc *p));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: proc.h,v 1.51 1997/09/11 23:02:36 mycroft Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.52 1997/10/09 12:50:00 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
|
@ -144,7 +144,7 @@ struct proc {
|
|||
int p_cpticks; /* Ticks of cpu time. */
|
||||
fixpt_t p_pctcpu; /* %cpu for this process during p_swtime */
|
||||
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_slptime; /* Time since last blocked. */
|
||||
|
||||
|
@ -309,7 +309,7 @@ void setrunnable __P((struct proc *));
|
|||
void setrunqueue __P((struct proc *));
|
||||
void sleep __P((void *chan, int pri));
|
||||
void swapin __P((struct proc *));
|
||||
int tsleep __P((void *chan, int pri, char *wmesg, int timo));
|
||||
int tsleep __P((void *chan, int pri, const char *wmesg, int timo));
|
||||
void unsleep __P((struct proc *));
|
||||
void wakeup __P((void *chan));
|
||||
void exit1 __P((struct proc *, int));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tty.h,v 1.36 1997/02/07 06:35:44 mikel Exp $ */
|
||||
/* $NetBSD: tty.h,v 1.37 1997/10/09 12:50:03 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -244,7 +244,7 @@ void ttypend __P((struct tty *tp));
|
|||
void ttyretype __P((struct tty *tp));
|
||||
void ttyrub __P((int c, struct tty *tp));
|
||||
int ttysleep __P((struct tty *tp,
|
||||
void *chan, int pri, char *wmesg, int timeout));
|
||||
void *chan, int pri, const char *wmesg, int timeout));
|
||||
int ttywait __P((struct tty *tp));
|
||||
int ttywflush __P((struct tty *tp));
|
||||
|
||||
|
|
Loading…
Reference in New Issue