diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-31 05:02:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-31 05:02:00 +0000 |
commit | 13e90e989ece6deb5117a75be37dc4e823995952 (patch) | |
tree | c035ede94cab2d64ea47fe49fe731978c0cce87b /bin/chio/chio.c | |
parent | 7c2d0bd9ae3ab6362edf6e3be031c03a5001001a (diff) |
prettier
Diffstat (limited to 'bin/chio/chio.c')
-rw-r--r-- | bin/chio/chio.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c index 84404e4127a..1f8b1fea3ec 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chio.c,v 1.16 2006/05/31 03:04:52 beck Exp $ */ +/* $OpenBSD: chio.c,v 1.17 2006/05/31 05:01:59 deraadt Exp $ */ /* $NetBSD: chio.c,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $ */ /* @@ -198,10 +198,12 @@ do_move(char *cname, int argc, char *argv[]) * pickers where the drive is on a seperate target * from the changer. */ - int mtfd; struct mtop mtoffl = { MTOFFL, 1 }; - char *tapedev = - parse_tapedev(_PATH_CH_CONF, changer_name, cmd.cm_fromunit); + char *tapedev; + int mtfd; + + tapedev = parse_tapedev(_PATH_CH_CONF, changer_name, + cmd.cm_fromunit); mtfd = opendev(tapedev, O_RDONLY, OPENDEV_PART | OPENDEV_DRCT, NULL); if (mtfd == -1) @@ -578,11 +580,11 @@ do_status(char *cname, int argc, char *argv[]) printf("%s %d: %s", description, i, bits_to_string(ces->ces_flags, CESTATUS_BITS)); if (pvoltag) - printf(" voltag: <%s:%d>", + printf(" voltag: <%s:%d>", ces->ces_pvoltag.cv_volid, ces->ces_pvoltag.cv_serial); if (avoltag) - printf(" avoltag: <%s:%d>", + printf(" avoltag: <%s:%d>", ces->ces_avoltag.cv_volid, ces->ces_avoltag.cv_serial); printf("\n"); |