Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/coreutils/mkdir.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/coreutils/mkdir.c
r1765 r2725 5 5 * Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu> 6 6 * 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 8 */ 9 9 … … 20 20 */ 21 21 22 #include <getopt.h> /* struct option */23 22 #include "libbb.h" 24 23 … … 35 34 #endif 36 35 37 int mkdir_main(int argc, char **argv) ;38 int mkdir_main(int argc , char **argv)36 int mkdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 37 int mkdir_main(int argc UNUSED_PARAM, char **argv) 39 38 { 40 39 mode_t mode = (mode_t)(-1); … … 50 49 applet_long_options = mkdir_longopts; 51 50 #endif 52 opt = getopt32(argv, "m:p" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));51 opt = getopt32(argv, "m:p" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext)); 53 52 if (opt & 1) { 54 53 mode = 0777; … … 66 65 #endif 67 66 68 if (optind == argc) { 67 argv += optind; 68 if (!argv[0]) 69 69 bb_show_usage(); 70 }71 72 argv += optind;73 70 74 71 do {
Note:
See TracChangeset
for help on using the changeset viewer.