summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-16 23:55:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-17 19:02:54 +0100
commit1a81c796689a01b00bc5aea0b3bd3fd672530798 (patch)
tree07a56408f742c6d97f5406c1c9e735b1cb8ab8f1 /i386/i386at
parentf4963a52e96230374826137cce44813c94853e6f (diff)
i386: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/autoconf.c4
-rw-r--r--i386/i386at/kd_event.c2
-rw-r--r--i386/i386at/kd_queue.c4
-rw-r--r--i386/i386at/kd_queue.h4
4 files changed, 7 insertions, 7 deletions
diff --git a/i386/i386at/autoconf.c b/i386/i386at/autoconf.c
index 31bb73c..908c3ec 100644
--- a/i386/i386at/autoconf.c
+++ b/i386/i386at/autoconf.c
@@ -122,7 +122,7 @@ void probeio(void)
}
void take_dev_irq(
- struct bus_device *dev)
+ const struct bus_device *dev)
{
int pic = (int)dev->sysdep1;
@@ -144,7 +144,7 @@ void take_dev_irq(
}
void take_ctlr_irq(
- struct bus_ctlr *ctlr)
+ const struct bus_ctlr *ctlr)
{
int pic = ctlr->sysdep1;
if (intpri[pic] == 0) {
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index ac87b20..30a7f77 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -311,7 +311,7 @@ int X_kdb_enter_len = 0, X_kdb_exit_len = 0;
void
kdb_in_out(p)
-u_int *p;
+const u_int *p;
{
int t = p[0];
diff --git a/i386/i386at/kd_queue.c b/i386/i386at/kd_queue.c
index 2b83044..2086eb1 100644
--- a/i386/i386at/kd_queue.c
+++ b/i386/i386at/kd_queue.c
@@ -72,14 +72,14 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
boolean_t
kdq_empty(q)
- kd_event_queue *q;
+ const kd_event_queue *q;
{
return(q->firstfree == q->firstout);
}
boolean_t
kdq_full(q)
- kd_event_queue *q;
+ const kd_event_queue *q;
{
return(q_next(q->firstfree) == q->firstout);
}
diff --git a/i386/i386at/kd_queue.h b/i386/i386at/kd_queue.h
index bd3fc7b..702efe8 100644
--- a/i386/i386at/kd_queue.h
+++ b/i386/i386at/kd_queue.h
@@ -79,8 +79,8 @@ typedef struct {
extern void kdq_put(kd_event_queue *, kd_event *);
extern void kdq_reset(kd_event_queue *);
-extern boolean_t kdq_empty(kd_event_queue *);
-extern boolean_t kdq_full(kd_event_queue *);
+extern boolean_t kdq_empty(const kd_event_queue *);
+extern boolean_t kdq_full(const kd_event_queue *);
extern kd_event *kdq_get(kd_event_queue *);
#endif /* _KD_QUEUE_H_ */