From bcd2c95437f6548f12b3f08867a099a9e4e8f4b6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 22 Jul 2008 00:21:43 +0000 Subject: [PATCH] 2008-07-18 Andreas Schwab * term.c (term_ioctl): Decode indirect parameter as int, not long. --- term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/term.c b/term.c index 15897bd8..3c242505 100644 --- a/term.c +++ b/term.c @@ -337,10 +337,10 @@ long code, arg; case TIOCMBIS: case TIOCMBIC: case TIOCMSET: - if (umove(tcp, arg, &arg) < 0) + if (umove(tcp, arg, &i) < 0) return 0; tprintf(", ["); - printflags(modem_flags, arg, "TIOCM_???"); + printflags(modem_flags, i, "TIOCM_???"); tprintf("]"); return 1; #endif /* TIOCMGET */ @@ -414,7 +414,7 @@ long code, arg; case TIOCGPTN: #endif tprintf(", "); - printnum(tcp, arg, "%d"); + printnum_int(tcp, arg, "%d"); return 1; #if 0 -- 2.50.1