projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
These messages can be .rodata, so make them even more const.
[oweals/busybox.git]
/
hostid.c
diff --git
a/hostid.c
b/hostid.c
index f8d5862ae23aab795ee78abb7bb4990810d8549d..68a2cc65900e1823251b303e2c3aa93c34f36ffb 100644
(file)
--- a/
hostid.c
+++ b/
hostid.c
@@
-1,3
+1,4
@@
+/* vi: set sw=4 ts=4: */
/*
* Mini hostid implementation for busybox
*
/*
* Mini hostid implementation for busybox
*
@@
-19,10
+20,13
@@
*
*/
*
*/
-#include "internal.h"
#include <stdio.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include "busybox.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;
}
}