*: small code shrinks and compile fix for unicode
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -85,7 +85,6 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
|
||||
{
|
||||
const char *p = "-1";
|
||||
const char *i = "-"; /* compat */
|
||||
const char *g; /* unimplemented, default is "0" */
|
||||
#if ENABLE_LONG_OPTS
|
||||
static const char patch_longopts[] ALIGN1 =
|
||||
"strip\0" Required_argument "p"
|
||||
@@ -97,7 +96,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
|
||||
;
|
||||
applet_long_options = patch_longopts;
|
||||
#endif
|
||||
opt = getopt32(argv, "p:i:RNg:", &p, &i, &g);
|
||||
opt = getopt32(argv, "p:i:RNg:", &p, &i, NULL);
|
||||
if (opt & OPT_R)
|
||||
plus = '-';
|
||||
patch_level = xatoi(p); /* can be negative! */
|
||||
|
Reference in New Issue
Block a user