summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-17 17:09:12 +0000
committermarcel <marcel@FreeBSD.org>2004-07-17 17:09:12 +0000
commit324c7572c7320765ce0b3791ff2141f3571ccdac (patch)
tree93eb367d7928c450ed682d43e7b4663d734bb2ab
parent8fa131ee7743206776b6a19e9254df69d3adb2ce (diff)
downloadFreeBSD-src-324c7572c7320765ce0b3791ff2141f3571ccdac.zip
FreeBSD-src-324c7572c7320765ce0b3791ff2141f3571ccdac.tar.gz
Add the const qualifier to the prgregset_t argument for the *setregs*
functions.
-rw-r--r--lib/libthread_db/include/thread_db.h2
-rw-r--r--lib/libthread_db/include/thread_db_int.h2
-rw-r--r--lib/libthread_db/pthread/pthread_db.c2
-rw-r--r--lib/libthread_db/src/thread_db.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libthread_db/include/thread_db.h b/lib/libthread_db/include/thread_db.h
index e5f0c32..82c8dc2 100644
--- a/lib/libthread_db/include/thread_db.h
+++ b/lib/libthread_db/include/thread_db.h
@@ -267,7 +267,7 @@ td_err_e td_thr_getgregs(const td_thrhandle_t *, prgregset_t);
td_err_e td_thr_getxregs(const td_thrhandle_t *, void *);
td_err_e td_thr_getxregsize(const td_thrhandle_t *, int *);
td_err_e td_thr_setfpregs(const td_thrhandle_t *, const prfpregset_t *);
-td_err_e td_thr_setgregs(const td_thrhandle_t *, prgregset_t);
+td_err_e td_thr_setgregs(const td_thrhandle_t *, const prgregset_t);
td_err_e td_thr_setxregs(const td_thrhandle_t *, const void *);
td_err_e td_thr_event_enable(const td_thrhandle_t *, int);
td_err_e td_thr_set_event(const td_thrhandle_t *, td_thr_events_t *);
diff --git a/lib/libthread_db/include/thread_db_int.h b/lib/libthread_db/include/thread_db_int.h
index 177cb4a..5afcb02 100644
--- a/lib/libthread_db/include/thread_db_int.h
+++ b/lib/libthread_db/include/thread_db_int.h
@@ -64,7 +64,7 @@ struct ta_ops {
td_err_e (*to_thr_getxregs)(const td_thrhandle_t *, void *);
td_err_e (*to_thr_getxregsize)(const td_thrhandle_t *, int *);
td_err_e (*to_thr_setfpregs)(const td_thrhandle_t *, const prfpregset_t *);
- td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, prgregset_t);
+ td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, const prgregset_t);
td_err_e (*to_thr_setxregs)(const td_thrhandle_t *, const void *);
td_err_e (*to_thr_event_enable)(const td_thrhandle_t *, int);
td_err_e (*to_thr_set_event)(const td_thrhandle_t *, td_thr_events_t *);
diff --git a/lib/libthread_db/pthread/pthread_db.c b/lib/libthread_db/pthread/pthread_db.c
index e4f74a6..9a468b3 100644
--- a/lib/libthread_db/pthread/pthread_db.c
+++ b/lib/libthread_db/pthread/pthread_db.c
@@ -662,7 +662,7 @@ pt_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs)
}
static td_err_e
-pt_thr_setgregs(const td_thrhandle_t *th, prgregset_t gregs)
+pt_thr_setgregs(const td_thrhandle_t *th, const prgregset_t gregs)
{
struct kse_thr_mailbox tmbx;
pt_thragent_t *ta = (pt_thragent_t *)th->th_ta_p;
diff --git a/lib/libthread_db/src/thread_db.c b/lib/libthread_db/src/thread_db.c
index 24d5e7c..1e841c2 100644
--- a/lib/libthread_db/src/thread_db.c
+++ b/lib/libthread_db/src/thread_db.c
@@ -232,7 +232,7 @@ td_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs)
}
td_err_e
-td_thr_setgregs(const td_thrhandle_t *th, prgregset_t gregs)
+td_thr_setgregs(const td_thrhandle_t *th, const prgregset_t gregs)
{
td_thragent_t *ta = th->th_ta_p;
OpenPOWER on IntegriCloud