From e901c15d890dbbdce4c086963cb1513653fc46b5 Mon Sep 17 00:00:00 2001 From: mjn3 Date: Wed, 19 Mar 2003 09:13:01 +0000 Subject: Major coreutils update. git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/hostid.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'coreutils/hostid.c') diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 68a2cc659..917dc223e 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c @@ -20,13 +20,19 @@ * */ -#include +/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ + #include #include #include "busybox.h" extern int hostid_main(int argc, char **argv) { - printf("%lx\n", gethostid()); - return EXIT_SUCCESS; + if (argc > 1) { + bb_show_usage(); + } + + bb_printf("%lx\n", gethostid()); + + bb_fflush_stdout_and_exit(EXIT_SUCCESS); } -- cgit v1.2.3-55-g6feb