diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /editors/diff.c | |
parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'editors/diff.c')
-rw-r--r-- | editors/diff.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/editors/diff.c b/editors/diff.c index 62f558944..1ff399ffb 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -988,6 +988,11 @@ static const char diff_longopts[] ALIGN1 = | |||
988 | "starting-file\0" Required_argument "S" | 988 | "starting-file\0" Required_argument "S" |
989 | "minimal\0" No_argument "d" | 989 | "minimal\0" No_argument "d" |
990 | ; | 990 | ; |
991 | # define GETOPT32 getopt32long | ||
992 | # define LONGOPTS ,diff_longopts | ||
993 | #else | ||
994 | # define GETOPT32 getopt32 | ||
995 | # define LONGOPTS | ||
991 | #endif | 996 | #endif |
992 | 997 | ||
993 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 998 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -1000,11 +1005,8 @@ int diff_main(int argc UNUSED_PARAM, char **argv) | |||
1000 | INIT_G(); | 1005 | INIT_G(); |
1001 | 1006 | ||
1002 | /* exactly 2 params; collect multiple -L <label>; -U N */ | 1007 | /* exactly 2 params; collect multiple -L <label>; -U N */ |
1003 | opt_complementary = "=2"; | 1008 | GETOPT32(argv, "^" "abdiL:*NqrsS:tTU:+wupBE" "\0" "=2" |
1004 | #if ENABLE_FEATURE_DIFF_LONG_OPTIONS | 1009 | LONGOPTS, |
1005 | applet_long_options = diff_longopts; | ||
1006 | #endif | ||
1007 | getopt32(argv, "abdiL:*NqrsS:tTU:+wupBE", | ||
1008 | &L_arg, &s_start, &opt_U_context); | 1010 | &L_arg, &s_start, &opt_U_context); |
1009 | argv += optind; | 1011 | argv += optind; |
1010 | while (L_arg) | 1012 | while (L_arg) |