summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_mutex.c8
-rw-r--r--sys/kern/subr_turnstile.c8
-rw-r--r--sys/kern/subr_witness.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 1ac3f58..3a5fb85 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -81,7 +81,7 @@ int witness_watch;
typedef struct witness {
struct witness *w_next;
char *w_description;
- char *w_file;
+ const char *w_file;
int w_line;
struct witness *w_morechildren;
u_char w_childcnt;
@@ -393,7 +393,7 @@ witness_exit(mtx_t *m, int flags, char *file, int line)
}
void
-witness_try_enter(mtx_t *m, int flags, char *file, int line)
+witness_try_enter(mtx_t *m, int flags, const char *file, int line)
{
struct proc *p;
witness_t *w = m->mtx_witness;
@@ -783,14 +783,14 @@ witness_list(struct proc *p)
}
void
-witness_save(mtx_t *m, char **filep, int *linep)
+witness_save(mtx_t *m, const char **filep, int *linep)
{
*filep = m->mtx_witness->w_file;
*linep = m->mtx_witness->w_line;
}
void
-witness_restore(mtx_t *m, char *file, int line)
+witness_restore(mtx_t *m, const char *file, int line)
{
m->mtx_witness->w_file = file;
m->mtx_witness->w_line = line;
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index 1ac3f58..3a5fb85 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -81,7 +81,7 @@ int witness_watch;
typedef struct witness {
struct witness *w_next;
char *w_description;
- char *w_file;
+ const char *w_file;
int w_line;
struct witness *w_morechildren;
u_char w_childcnt;
@@ -393,7 +393,7 @@ witness_exit(mtx_t *m, int flags, char *file, int line)
}
void
-witness_try_enter(mtx_t *m, int flags, char *file, int line)
+witness_try_enter(mtx_t *m, int flags, const char *file, int line)
{
struct proc *p;
witness_t *w = m->mtx_witness;
@@ -783,14 +783,14 @@ witness_list(struct proc *p)
}
void
-witness_save(mtx_t *m, char **filep, int *linep)
+witness_save(mtx_t *m, const char **filep, int *linep)
{
*filep = m->mtx_witness->w_file;
*linep = m->mtx_witness->w_line;
}
void
-witness_restore(mtx_t *m, char *file, int line)
+witness_restore(mtx_t *m, const char *file, int line)
{
m->mtx_witness->w_file = file;
m->mtx_witness->w_line = line;
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 1ac3f58..3a5fb85 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -81,7 +81,7 @@ int witness_watch;
typedef struct witness {
struct witness *w_next;
char *w_description;
- char *w_file;
+ const char *w_file;
int w_line;
struct witness *w_morechildren;
u_char w_childcnt;
@@ -393,7 +393,7 @@ witness_exit(mtx_t *m, int flags, char *file, int line)
}
void
-witness_try_enter(mtx_t *m, int flags, char *file, int line)
+witness_try_enter(mtx_t *m, int flags, const char *file, int line)
{
struct proc *p;
witness_t *w = m->mtx_witness;
@@ -783,14 +783,14 @@ witness_list(struct proc *p)
}
void
-witness_save(mtx_t *m, char **filep, int *linep)
+witness_save(mtx_t *m, const char **filep, int *linep)
{
*filep = m->mtx_witness->w_file;
*linep = m->mtx_witness->w_line;
}
void
-witness_restore(mtx_t *m, char *file, int line)
+witness_restore(mtx_t *m, const char *file, int line)
{
m->mtx_witness->w_file = file;
m->mtx_witness->w_line = line;
OpenPOWER on IntegriCloud