Added some more '/* getopt not needed */' lines.
[oweals/busybox.git] / loadacm.c
index 040062cf8ce69140343d67302a4f285a9ee92b8e..81b973b026f8dc6b88f131f2ae2c5bf237df4cdd 100644 (file)
--- a/loadacm.c
+++ b/loadacm.c
@@ -7,7 +7,6 @@
  * Peter Novodvorsky <petya@logic.ru>
  */
 
-#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <memory.h>
 #include <assert.h>
 #include <errno.h>
 #include <signal.h>
+#include <sys/kd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
-#include <sys/kd.h>
+#include "busybox.h"
 
 typedef unsigned short unicode;
 
@@ -34,7 +34,7 @@ int loadacm_main(int argc, char **argv)
        int fd;
 
        if (argc>=2 && *argv[1]=='-') {
-               usage(loadacm_usage);
+               show_usage();
        }
 
        fd = open("/dev/tty", O_RDWR);
@@ -70,7 +70,7 @@ int screen_map_load(int fd, FILE * fp)
                if (parse_failed) {
                        if (-1 == fseek(fp, 0, SEEK_SET)) {
                                if (errno == ESPIPE)
-                                       error_msg_and_die("16bit screen-map MUST be a regular file.\n");
+                                       error_msg_and_die("16bit screen-map MUST be a regular file.");
                                else
                                        perror_msg_and_die("fseek failed reading binary 16bit screen-map");
                        }
@@ -79,7 +79,7 @@ int screen_map_load(int fd, FILE * fp)
                                perror_msg_and_die("Cannot read [new] map from file");
 #if 0
                        else
-                               error_msg("Input screen-map is binary.\n");
+                               error_msg("Input screen-map is binary.");
 #endif
                }
 
@@ -96,7 +96,7 @@ int screen_map_load(int fd, FILE * fp)
        /* rewind... */
        if (-1 == fseek(fp, 0, SEEK_SET)) {
                if (errno == ESPIPE)
-                       error_msg("Assuming 8bit screen-map - MUST be a regular file.\n"),
+                       error_msg("Assuming 8bit screen-map - MUST be a regular file."),
                                exit(1);
                else
                        perror_msg_and_die("fseek failed assuming 8bit screen-map");
@@ -109,7 +109,7 @@ int screen_map_load(int fd, FILE * fp)
                        if (-1 == fseek(fp, 0, SEEK_SET)) {
                                if (errno == ESPIPE)
                                        /* should not - it succedeed above */
-                                       error_msg_and_die("fseek() returned ESPIPE !\n");
+                                       error_msg_and_die("fseek() returned ESPIPE !");
                                else
                                        perror_msg_and_die("fseek for binary 8bit screen-map");
                        }
@@ -118,7 +118,7 @@ int screen_map_load(int fd, FILE * fp)
                                perror_msg_and_die("Cannot read [old] map from file");
 #if 0
                        else
-                               error_msg("Input screen-map is binary.\n");
+                               error_msg("Input screen-map is binary.");
 #endif
                }
 
@@ -127,7 +127,7 @@ int screen_map_load(int fd, FILE * fp)
                else
                        return 0;
        }
-       error_msg("Error parsing symbolic map\n");
+       error_msg("Error parsing symbolic map");
        return(1);
 }