summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-06-03 23:55:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-06-03 23:55:33 +0200
commit6f86d32c35e98e14d4c4ed34d5dc21420819fd1d (patch)
treea7f2173313bd2d81c38963aa9c248dcc364bb6be
parent2e937e4ea24e61efc470a8ec59efe5b722edcc00 (diff)
term: Use speed_t type
-rw-r--r--term/devio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term/devio.c b/term/devio.c
index 302cff63..372d0763 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -141,7 +141,7 @@ devio_fini (void)
/* XXX Convert a real speed to a bogus Mach speed. Return
-1 if the real speed was bogus, else 0. */
static int
-real_speed_to_bogus_speed (int rspeed, int *bspeed)
+real_speed_to_bogus_speed (speed_t rspeed, int *bspeed)
{
switch (rspeed)
{
@@ -210,7 +210,7 @@ real_speed_to_bogus_speed (int rspeed, int *bspeed)
}
/* XXX Convert a bogus speed to a real speed. */
-static int
+static speed_t
bogus_speed_to_real_speed (int bspeed)
{
switch (bspeed)