diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-08-30 03:09:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-30 23:27:43 +0200 |
commit | e0a627a303df094331381a6efaa5784a5d4c97f5 (patch) | |
tree | 0d2ea595310a346d8f01419e7091ac3a3ba9539c /i386/i386at/com.c | |
parent | e262931bb794267aa0f1a420c848767800bed7c3 (diff) | |
download | gnumach-e0a627a303df094331381a6efaa5784a5d4c97f5.tar.gz gnumach-e0a627a303df094331381a6efaa5784a5d4c97f5.tar.bz2 gnumach-e0a627a303df094331381a6efaa5784a5d4c97f5.zip |
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/i386at/com.c')
-rw-r--r-- | i386/i386at/com.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c index 4fed1ee8..b1406f08 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; |