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/length.c

    r821 r1765  
    33/* BB_AUDIT SUSv3 N/A -- Apparently a busybox (obsolete?) extension. */
    44
    5 #include <stdlib.h>
    6 #include <string.h>
    7 #include <stdio.h>
    8 #include "busybox.h"
     5#include "libbb.h"
    96
     7/* This is a NOFORK applet. Be very careful! */
     8
     9int length_main(int argc, char **argv);
    1010int length_main(int argc, char **argv)
    1111{
    12     if ((argc != 2) ||  (**(++argv) == '-')) {
    13         bb_show_usage();
     12    if ((argc != 2) || (**(++argv) == '-')) {
     13        bb_show_usage();
    1414    }
    1515
    16     bb_printf("%lu\n", (unsigned long)strlen(*argv));
     16    printf("%u\n", (unsigned)strlen(*argv));
    1717
    18     bb_fflush_stdout_and_exit(EXIT_SUCCESS);
     18    return fflush(stdout);
    1919}
Note: See TracChangeset for help on using the changeset viewer.