Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/coreutils/hostid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 14  Line 14 
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  }  }

Legend:
Removed from v.983  
changed lines
  Added in v.984