Moved some code and add a coupld #defines to support use of dmalloc.
[oweals/busybox.git] / mt.c
diff --git a/mt.c b/mt.c
index 44f23884c5d61e5ad1dc0bda981c2b22f06b173c..087819e72af6f0e859151e17b146cb80fbaa5d30 100644 (file)
--- a/mt.c
+++ b/mt.c
@@ -4,12 +4,6 @@
 #include <sys/mtio.h>
 #include <sys/fcntl.h>
 
-static const char mt_usage[] = "mt [-f device] opcode value\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-                       "\nControl magnetic tape drive operation\n"
-#endif
-                       ;
-
 struct mt_opcodes {
        char *name;
        short value;
@@ -81,7 +75,7 @@ extern int mt_main(int argc, char **argv)
        }
 
        if (code->name == 0) {
-               fprintf(stderr, "mt: unrecognized opcode %s.\n", argv[1]);
+               errorMsg("unrecognized opcode %s.\n", argv[1]);
                exit (FALSE);
        }
 
@@ -101,5 +95,5 @@ extern int mt_main(int argc, char **argv)
                exit (FALSE);
        }
 
-       exit (TRUE);
+       return (TRUE);
 }