diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-09 06:43:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-09 06:43:00 +0000 |
commit | fe755a029a92b9c360a3ade43ea9549f8da5e804 (patch) | |
tree | 87f5f09fb1a9b736a76f06fb33eb9bf59a5ffd03 /bin/mt/mt.c | |
parent | 0ebf0e5b112b6d41b655424abab9134b8005946d (diff) |
simplify the sub-ioctl function
Diffstat (limited to 'bin/mt/mt.c')
-rw-r--r-- | bin/mt/mt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c index 9d7f65f60c5..0c1d6e9bd0d 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.32 2009/11/07 01:31:38 deraadt Exp $ */ +/* $OpenBSD: mt.c,v 1.33 2009/11/09 06:42:59 deraadt Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -96,7 +96,7 @@ _rmtopendev(char *path, int oflags, int dflags, char **realpath) } int -_rmtioctl(int fd, long req, struct mtop *com) +_rmtmtioctop(int fd, struct mtop *com) { #ifdef RMT if (host) @@ -136,8 +136,9 @@ main(int argc, char *argv[]) { struct commands *comp; struct mtop mt_com; - int ch, len, mtfd, flags, insert = 0; + int ch, mtfd, flags, insert = 0; char *p, *tape, *realtape, *opts; + size_t len; if ((progname = strrchr(argv[0], '/'))) progname++; @@ -224,7 +225,7 @@ main(int argc, char *argv[]) } else mt_com.mt_count = 1; - if (_rmtioctl(mtfd, MTIOCTOP, &mt_com) < 0) { + if (_rmtmtioctop(mtfd, &mt_com) < 0) { if (eject) err(2, "%s", tape); else |