summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-08-30 03:09:29 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-30 23:27:43 +0200
commite0a627a303df094331381a6efaa5784a5d4c97f5 (patch)
tree0d2ea595310a346d8f01419e7091ac3a3ba9539c /i386
parente262931bb794267aa0f1a420c848767800bed7c3 (diff)
Cast function timeout() argument to fix a warning
* kern/mach_clock.h (timer_func_t): New function type. (struct timer_elt): Change fcn type to timer_func_t. * i386/i386at/com.c (comstart): Cast `ttrstrt' to `timer_funct_t *' in `timeout' call. * i386/i386at/lpr.c (lprstart): Likewise,
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/com.c2
-rw-r--r--i386/i386at/lpr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 4fed1ee..b1406f0 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -657,7 +657,7 @@ comst_4++;
#else
nch = getc(&tp->t_outq);
if ((nch & 0200) && ((tp->t_flags & LITOUT) == 0)) {
- timeout(ttrstrt, (char *)tp, (nch & 0x7f) + 6);
+ timeout((timer_func_t *)ttrstrt, (char *)tp, (nch & 0x7f) + 6);
tp->t_state |= TS_TIMEOUT;
comst_4++;
return;
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c
index 57f6f85..8d077d5 100644
--- a/i386/i386at/lpr.c
+++ b/i386/i386at/lpr.c
@@ -338,7 +338,7 @@ struct tty *tp;
#ifdef MACH_KERNEL
nch = getc(&tp->t_outq);
if ((tp->t_flags & LITOUT) == 0 && (nch & 0200)) {
- timeout(ttrstrt, (char *)tp, (nch & 0x7f) + 6);
+ timeout((timer_func_t *)ttrstrt, (char *)tp, (nch & 0x7f) + 6);
tp->t_state |= TS_TIMEOUT;
return;
}