These messages can be .rodata, so make them even more const.
[oweals/busybox.git] / hostid.c
index 3bf79de473fef8df7895754fc4d51147000fc9e5..68a2cc65900e1823251b303e2c3aa93c34f36ffb 100644 (file)
--- a/hostid.c
+++ b/hostid.c
  *
  */
 
-#include "internal.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include "busybox.h"
 
 extern int hostid_main(int argc, char **argv)
 {
-       if (argc > 1 && strcmp(argv[1], "--help") == 0)
-               usage(hostid_usage);
-
        printf("%lx\n", gethostid());
-       return(TRUE);
+       return EXIT_SUCCESS;
 }