Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/util-linux/rdev.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/util-linux/rdev.c
r2725 r3232 10 10 */ 11 11 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 12 21 #include "libbb.h" 13 22 … … 15 24 int rdev_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 16 25 { 17 c har const * constroot_device = find_block_device("/");26 const char *root_device = find_block_device("/"); 18 27 19 if (root_device != NULL) {28 if (root_device) { 20 29 printf("%s /\n", root_device); 21 30 return EXIT_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.