diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-11 22:30:57 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-11 22:30:57 +0000 |
commit | 4907cd2837006c10a4de5ff099eea656e5a089b8 (patch) | |
tree | 1de0e3aede72d02abe029bb4656dec78b6f5840d /sys | |
parent | 6916b480bce82c1dc07719d41631a38c56a6a62c (diff) |
Let ltsleep take a const wmesg.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_synch.c | 4 | ||||
-rw-r--r-- | sys/sys/proc.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 57c9e4c6b2e..6bb1cc9fba2 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_synch.c,v 1.39 2001/11/06 19:53:20 miod Exp $ */ +/* $OpenBSD: kern_synch.c,v 1.40 2001/11/11 22:30:56 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -344,7 +344,7 @@ int ltsleep(ident, priority, wmesg, timo, interlock) void *ident; int priority, timo; - char *wmesg; + const char *wmesg; volatile struct simplelock *interlock; { struct proc *p = curproc; diff --git a/sys/sys/proc.h b/sys/sys/proc.h index e365e4c3767..023d180d407 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.49 2001/11/06 18:41:10 art Exp $ */ +/* $OpenBSD: proc.h,v 1.50 2001/11/11 22:30:56 art Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -152,7 +152,7 @@ struct proc { fixpt_t p_pctcpu; /* %cpu for this process during p_swtime */ void *p_wchan; /* Sleep address. */ struct timeout p_sleep_to;/* timeout for tsleep() */ - 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. */ int p_schedflags; /* PSCHED_* flags */ @@ -367,7 +367,7 @@ void setrunnable __P((struct proc *)); void setrunqueue __P((struct proc *)); void sleep __P((void *chan, int pri)); void uvm_swapin __P((struct proc *)); /* XXX: uvm_extern.h? */ -int ltsleep __P((void *chan, int pri, char *wmesg, int timo, +int ltsleep __P((void *chan, int pri, const char *wmesg, int timo, volatile struct simplelock *)); #define tsleep(chan, pri, wmesg, timo) ltsleep(chan, pri, wmesg, timo, NULL) void unsleep __P((struct proc *)); |