Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/util-linux/rdev.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/util-linux/rdev.c

    r2725 r3232  
    1010 */
    1111
     12//usage:#define rdev_trivial_usage
     13//usage:       ""
     14//usage:#define rdev_full_usage "\n\n"
     15//usage:       "Print the device node associated with the filesystem mounted at '/'"
     16//usage:
     17//usage:#define rdev_example_usage
     18//usage:       "$ rdev\n"
     19//usage:       "/dev/mtdblock9 /\n"
     20
    1221#include "libbb.h"
    1322
     
    1524int rdev_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
    1625{
    17     char const * const root_device = find_block_device("/");
     26    const char *root_device = find_block_device("/");
    1827
    19     if (root_device != NULL) {
     28    if (root_device) {
    2029        printf("%s /\n", root_device);
    2130        return EXIT_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.