Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/coreutils/hostid.c

    r821 r1765  
    1010/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
    1111
    12 #include <stdlib.h>
    13 #include <unistd.h>
    14 #include "busybox.h"
     12#include "libbb.h"
    1513
     14/* This is a NOFORK applet. Be very careful! */
     15
     16int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv);
    1617int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv)
    1718{
     
    2021    }
    2122
    22     bb_printf("%lx\n", gethostid());
     23    printf("%lx\n", gethostid());
    2324
    24     bb_fflush_stdout_and_exit(EXIT_SUCCESS);
     25    return fflush(stdout);
    2526}
Note: See TracChangeset for help on using the changeset viewer.