diff options
author | Roland McGrath <roland@redhat.com> | 2008-07-22 00:21:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-07-22 00:21:43 +0000 |
commit | bcd2c95437f6548f12b3f08867a099a9e4e8f4b6 (patch) | |
tree | dc2afb87bde5e08c492d0ba3b76b396271c565ff /term.c | |
parent | e157e366344009a8435418bf90886c0ee4a07b41 (diff) | |
download | strace-bcd2c95437f6548f12b3f08867a099a9e4e8f4b6.tar.gz strace-bcd2c95437f6548f12b3f08867a099a9e4e8f4b6.tar.bz2 strace-bcd2c95437f6548f12b3f08867a099a9e4e8f4b6.tar.xz |
2008-07-18 Andreas Schwab <schwab@suse.de>
* term.c (term_ioctl): Decode indirect parameter as int, not long.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |