aboutsummaryrefslogtreecommitdiff
path: root/coreutils/hostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/hostid.c')
-rw-r--r--coreutils/hostid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/hostid.c b/coreutils/hostid.c
index 51a76c631..e14f6ca57 100644
--- a/coreutils/hostid.c
+++ b/coreutils/hostid.c
@@ -9,10 +9,10 @@
9 9
10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ 10/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11 11
12#include <stdlib.h>
13#include <unistd.h>
14#include "busybox.h" 12#include "busybox.h"
15 13
14/* This is a NOFORK applet. Be very careful! */
15
16int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv); 16int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv);
17int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) 17int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv)
18{ 18{
@@ -22,5 +22,5 @@ int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv)
22 22
23 printf("%lx\n", gethostid()); 23 printf("%lx\n", gethostid());
24 24
25 fflush_stdout_and_exit(EXIT_SUCCESS); 25 return fflush(stdout);
26} 26}