Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/coreutils/hostid.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/coreutils/hostid.c
r821 r1770 10 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 "libbb.h" 15 13 14 /* This is a NOFORK applet. Be very careful! */ 15 16 int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv); 16 17 int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) 17 18 { … … 20 21 } 21 22 22 bb_printf("%lx\n", gethostid());23 printf("%lx\n", gethostid()); 23 24 24 bb_fflush_stdout_and_exit(EXIT_SUCCESS);25 return fflush(stdout); 25 26 }
Note:
See TracChangeset
for help on using the changeset viewer.