Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/util-linux/freeramdisk.c

    r1765 r2725  
    77 * Unified with fdflush by Tito Ragusa <farmatito@tiscali.it>
    88 *
    9  * Licensed under GPLv2, see file LICENSE in this tarball for details.
     9 * Licensed under GPLv2, see file LICENSE in this source tree.
    1010 */
    11 
     11#include <sys/mount.h>
    1212#include "libbb.h"
    1313
     
    1515#define FDFLUSH  _IO(2,0x4b)
    1616
    17 int freeramdisk_main(int argc, char **argv);
    18 int freeramdisk_main(int argc, char **argv)
     17int freeramdisk_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     18int freeramdisk_main(int argc UNUSED_PARAM, char **argv)
    1919{
    2020    int fd;
    2121
    22     if (argc != 2) bb_show_usage();
    23 
    24     fd = xopen(argv[1], O_RDWR);
     22    fd = xopen(single_argv(argv), O_RDWR);
    2523
    2624    // Act like freeramdisk, fdflush, or both depending on configuration.
    27     ioctl_or_perror_and_die(fd, (ENABLE_FREERAMDISK && applet_name[1]=='r')
     25    ioctl_or_perror_and_die(fd, (ENABLE_FREERAMDISK && applet_name[1] == 'r')
    2826            || !ENABLE_FDFLUSH ? BLKFLSBUF : FDFLUSH, NULL, "%s", argv[1]);
    2927
Note: See TracChangeset for help on using the changeset viewer.