Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / hostid.c
index f8d5862ae23aab795ee78abb7bb4990810d8549d..eed1a50ec8e8560cc8df3a9c00ac0483a28e5f18 100644 (file)
--- a/hostid.c
+++ b/hostid.c
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * Mini hostid implementation for busybox
  *
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 
-extern int hostid_main(int argc, char **argv) {
-       printf ("%lx\n", gethostid());
-       exit( TRUE);
+extern int hostid_main(int argc, char **argv)
+{
+       printf("%lx\n", gethostid());
+       return EXIT_SUCCESS;
 }