--- trunk/mkinitrd-magellan/busybox/coreutils/hostid.c 2007/09/01 22:45:15 532 +++ trunk/mkinitrd-magellan/busybox/coreutils/hostid.c 2009/04/24 18:33:46 816 @@ -9,11 +9,12 @@ /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ -#include -#include -#include "busybox.h" +#include "libbb.h" -int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) +/* This is a NOFORK applet. Be very careful! */ + +int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +int hostid_main(int argc, char **argv UNUSED_PARAM) { if (argc > 1) { bb_show_usage(); @@ -21,5 +22,5 @@ printf("%lx\n", gethostid()); - fflush_stdout_and_exit(EXIT_SUCCESS); + return fflush(stdout); }