14 |
/* This is a NOFORK applet. Be very careful! */ |
/* This is a NOFORK applet. Be very careful! */ |
15 |
|
|
16 |
int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 |
int hostid_main(int argc, char **argv UNUSED_PARAM) |
int hostid_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
18 |
{ |
{ |
19 |
if (argc > 1) { |
if (argv[1]) { |
20 |
bb_show_usage(); |
bb_show_usage(); |
21 |
} |
} |
22 |
|
|
23 |
printf("%lx\n", gethostid()); |
printf("%lx\n", gethostid()); |
24 |
|
|
25 |
return fflush(stdout); |
return fflush_all(); |
26 |
} |
} |