Changeset 1765 in MondoRescue for branches/2.2.5/mindi-busybox/procps/free.c


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/procps/free.c

    r821 r1765  
    55 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
    66 *
    7  * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
     7 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
    88 */
    99
    1010/* getopt not needed */
    1111
    12 #include "busybox.h"
    13 #include <stdio.h>
    14 #include <errno.h>
    15 #include <stdlib.h>
     12#include "libbb.h"
    1613
     14int free_main(int argc, char **argv);
    1715int free_main(int argc, char **argv)
    1816{
     
    2119
    2220    /* Kernels prior to 2.4.x will return info.mem_unit==0, so cope... */
    23     if (info.mem_unit==0) {
     21    if (info.mem_unit == 0) {
    2422        info.mem_unit=1;
    2523    }
    26     if ( info.mem_unit == 1 ) {
     24    if (info.mem_unit == 1) {
    2725        info.mem_unit=1024;
    2826
     
    4947    }
    5048
    51     if (argc > 1 && **(argv + 1) == '-')
     49    if (argc > 1 && *argv[1] == '-')
    5250        bb_show_usage();
    5351
     
    6967    return EXIT_SUCCESS;
    7068}
    71 
Note: See TracChangeset for help on using the changeset viewer.