summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-09-12 21:42:58 +0000
committermjacob <mjacob@FreeBSD.org>2000-09-12 21:42:58 +0000
commit5288925756234ff8676e6bc4f0381984cc0223de (patch)
treef731509bd8bb0505fa1f88e9852a0d2f95b82806 /sbin
parent6ceabd7082167d6581d7a44a7e9df7f483861a25 (diff)
downloadFreeBSD-src-5288925756234ff8676e6bc4f0381984cc0223de.zip
FreeBSD-src-5288925756234ff8676e6bc4f0381984cc0223de.tar.gz
Fix sign extension.
PR: 21232 Obtained from: Christian Weisgerber <naddy@mips.inka.de>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/restore/tape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c
index 21ac8b1..602ce61 100644
--- a/sbin/restore/tape.c
+++ b/sbin/restore/tape.c
@@ -497,7 +497,7 @@ setdumpnum()
rmtioctl(MTFSF, dumpnum - 1);
else
#endif
- if (ioctl(mt, (int)MTIOCTOP, (char *)&tcom) < 0)
+ if (ioctl(mt, MTIOCTOP, (char *)&tcom) < 0)
fprintf(stderr, "ioctl MTFSF: %s\n", strerror(errno));
}
OpenPOWER on IntegriCloud