#include <sys/mtio.h>
#include <sys/fcntl.h>
-static const char mt_usage[] = "mt [-f device] opcode value\n\n"
- "Control magnetic tape drive operation\n";
-
struct mt_opcodes {
char *name;
short value;
struct mtop op;
int fd;
- if ((argc != 2 && argc != 3) || **(argv + 1) == '-') {
+ if ((argc != 2 && argc != 3) && **(argv + 1) != '-') {
usage(mt_usage);
}
}
if (code->name == 0) {
- fprintf(stderr, "mt: unrecognized opcode %s.\n", argv[1]);
+ errorMsg("unrecognized opcode %s.\n", argv[1]);
exit (FALSE);
}
exit (FALSE);
}
- exit (TRUE);
+ return (TRUE);
}