summaryrefslogtreecommitdiff
path: root/coreutils/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/mv.c')
-rw-r--r--coreutils/mv.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/coreutils/mv.c b/coreutils/mv.c
index 8d9c9827a..bb96af8f6 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -21,11 +21,10 @@
21#include "libcoreutils/coreutils.h" 21#include "libcoreutils/coreutils.h"
22 22
23#if ENABLE_FEATURE_MV_LONG_OPTIONS 23#if ENABLE_FEATURE_MV_LONG_OPTIONS
24static const struct option mv_long_options[] = { 24static const char mv_longopts[] =
25 { "interactive", 0, NULL, 'i' }, 25 "interactive\0" No_argument "i"
26 { "force", 0, NULL, 'f' }, 26 "force\0" No_argument "f"
27 { 0, 0, 0, 0 } 27 "\0";
28};
29#endif 28#endif
30 29
31#define OPT_FILEUTILS_FORCE 1 30#define OPT_FILEUTILS_FORCE 1
@@ -45,7 +44,7 @@ int mv_main(int argc, char **argv)
45 int copy_flag = 0; 44 int copy_flag = 0;
46 45
47#if ENABLE_FEATURE_MV_LONG_OPTIONS 46#if ENABLE_FEATURE_MV_LONG_OPTIONS
48 applet_long_options = mv_long_options; 47 applet_long_options = mv_longopts;
49#endif 48#endif
50 opt_complementary = "f-i:i-f"; 49 opt_complementary = "f-i:i-f";
51 flags = getopt32(argc, argv, "fi"); 50 flags = getopt32(argc, argv, "fi");