- use EXIT_{SUCCESS,FAILURE}. No object-code changes
This commit is contained in:
@@ -179,7 +179,7 @@ int cal_main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
fflush_stdout_and_exit(0);
|
||||
fflush_stdout_and_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -85,7 +85,7 @@ int env_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
||||
puts(*ep);
|
||||
}
|
||||
|
||||
fflush_stdout_and_exit(0);
|
||||
fflush_stdout_and_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -29,5 +29,5 @@ int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
fflush_stdout_and_exit(0);
|
||||
fflush_stdout_and_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
@@ -266,7 +266,7 @@ static char **print_formatted(char *format, char **argv)
|
||||
break;
|
||||
case '\\':
|
||||
if (*++f == 'c')
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
bb_putchar(bb_process_escape_sequence((const char **)&f));
|
||||
f--;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user