Update internal.h to conditionally include asm/string.h
[oweals/busybox.git] / loadkmap.c
index 2ac4273db515f67c72c570a17dbb18caaf1228b3..905741467cc33e7371ceb8dffdcc7736b8eec7e3 100644 (file)
 #include <sys/ioctl.h>
 
 
-static const char loadkmap_usage[] = "loadkmap\n\n"
-       "Loads a binary keyboard translation table from standard input.\n";
+static const char loadkmap_usage[] = "loadkmap\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "Loads a binary keyboard translation table from standard input.\n"
+#endif
+       ;
 
 
 int loadkmap_main(int argc, char **argv)
@@ -51,7 +54,6 @@ int loadkmap_main(int argc, char **argv)
        }
 
        read(0, buff, 7);
-       printf("buff='%s'\n", buff);
        if (0 != strncmp(buff, magic, 7)) {
                fprintf(stderr, "This is not a valid binary keymap.\n");
                exit(FALSE);
@@ -92,5 +94,5 @@ int loadkmap_main(int argc, char **argv)
        /* Don't bother to close files.  Exit does that 
         * automagically, so we can save a few bytes */
        /* close(fd); */
-       exit(TRUE);
+       return(TRUE);
 }