#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)
}
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);
/* Don't bother to close files. Exit does that
* automagically, so we can save a few bytes */
/* close(fd); */
- exit(TRUE);
+ return(TRUE);
}