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


Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (17 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/uptime.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
     
    1616/* getopt not needed */
    1717
    18 #include "busybox.h"
    19 #include <stdio.h>
    20 #include <time.h>
    21 #include <errno.h>
    22 #include <stdlib.h>
     18#include "libbb.h"
    2319
    2420#ifndef FSHIFT
     
    3026
    3127
     28int uptime_main(int argc, char **argv);
    3229int uptime_main(int argc, char **argv)
    3330{
     
    5047    uphours = (upminutes / 60) % 24;
    5148    upminutes %= 60;
    52     if(uphours)
     49    if (uphours)
    5350        printf("%2d:%02d, ", uphours, upminutes);
    5451    else
Note: See TracChangeset for help on using the changeset viewer.