diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-20 02:51:09 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-20 02:51:09 +0100 |
commit | 94ca6943bc5266b0f3e6fc180814e184d7502442 (patch) | |
tree | 5034cffc64f6679c4478eabb6a37100c57cbc9cd /editors/patch.c | |
parent | 0d478334b3e6f644f26518c31117b25134a2678a (diff) | |
download | busybox-w32-94ca6943bc5266b0f3e6fc180814e184d7502442.tar.gz busybox-w32-94ca6943bc5266b0f3e6fc180814e184d7502442.tar.bz2 busybox-w32-94ca6943bc5266b0f3e6fc180814e184d7502442.zip |
*: small code shrinks and compile fix for unicode
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/patch.c')
-rw-r--r-- | editors/patch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c index ab3af3ce7..b36980fed 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -85,7 +85,6 @@ int patch_main(int argc UNUSED_PARAM, char **argv) | |||
85 | { | 85 | { |
86 | const char *p = "-1"; | 86 | const char *p = "-1"; |
87 | const char *i = "-"; /* compat */ | 87 | const char *i = "-"; /* compat */ |
88 | const char *g; /* unimplemented, default is "0" */ | ||
89 | #if ENABLE_LONG_OPTS | 88 | #if ENABLE_LONG_OPTS |
90 | static const char patch_longopts[] ALIGN1 = | 89 | static const char patch_longopts[] ALIGN1 = |
91 | "strip\0" Required_argument "p" | 90 | "strip\0" Required_argument "p" |
@@ -97,7 +96,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv) | |||
97 | ; | 96 | ; |
98 | applet_long_options = patch_longopts; | 97 | applet_long_options = patch_longopts; |
99 | #endif | 98 | #endif |
100 | opt = getopt32(argv, "p:i:RNg:", &p, &i, &g); | 99 | opt = getopt32(argv, "p:i:RNg:", &p, &i, NULL); |
101 | if (opt & OPT_R) | 100 | if (opt & OPT_R) |
102 | plus = '-'; | 101 | plus = '-'; |
103 | patch_level = xatoi(p); /* can be negative! */ | 102 | patch_level = xatoi(p); /* can be negative! */ |