mail: move "opts" from globals
function old new delta popmaildir_main 812 823 +11 sendmail_main 1295 1301 +6 makemime_main 291 288 -3 parse 970 966 -4 reformime_main 107 100 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 17/-14) Total: 3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -166,7 +166,7 @@ static int parse(const char *boundary, char **argv)
|
||||
else
|
||||
filename = bb_get_last_path_component_strip(xstrdup(filename));
|
||||
|
||||
if (opts & OPT_X) {
|
||||
if (option_mask32 & OPT_X) {
|
||||
int fd[2];
|
||||
|
||||
/* start external helper */
|
||||
@@ -219,7 +219,7 @@ static int parse(const char *boundary, char **argv)
|
||||
fclose(fp);
|
||||
|
||||
/* Wait for child */
|
||||
if (opts & OPT_X) {
|
||||
if (option_mask32 & OPT_X) {
|
||||
int rc;
|
||||
signal(SIGPIPE, SIG_DFL);
|
||||
rc = (wait4pid(pid) & 0xff);
|
||||
@@ -275,6 +275,7 @@ Usage: reformime [options]
|
||||
int reformime_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
int reformime_main(int argc UNUSED_PARAM, char **argv)
|
||||
{
|
||||
unsigned opts;
|
||||
const char *opt_prefix = "";
|
||||
|
||||
INIT_G();
|
||||
|
Reference in New Issue
Block a user