introduce and use exitcode_t

function                                             old     new   delta
strings_main                                         422     420      -2
setfattr_main                                        175     173      -2
brctl_main                                          1548    1546      -2
makedevs_main                                        979     975      -4
rev_main                                             337     332      -5
getfattr_main                                        307     302      -5
cut_main                                            1201    1196      -5
cksum_main                                           398     393      -5
umount_main                                          573     565      -8
ln_main                                              516     508      -8
expand_main                                          660     652      -8
df_main                                             1068    1060      -8
renice_main                                          346     332     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/13 up/down: 0/-76)            Total: -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2023-07-17 17:29:36 +02:00
parent a6a102ec4c
commit c484846c44
18 changed files with 26 additions and 19 deletions

View file

@ -77,7 +77,7 @@ int getfattr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int getfattr_main(int argc UNUSED_PARAM, char **argv)
{
const char *name;
int status;
exitcode_t status;
int opt;
char *buf = NULL;
size_t bufsize = 0;

View file

@ -181,7 +181,7 @@ int makedevs_main(int argc UNUSED_PARAM, char **argv)
{
parser_t *parser;
char *line = (char *)"-";
int ret = EXIT_SUCCESS;
exitcode_t ret = EXIT_SUCCESS;
getopt32(argv, "^" "d:" "\0" "=1", &line);
argv += optind;

View file

@ -32,7 +32,7 @@ int setfattr_main(int argc UNUSED_PARAM, char **argv)
{
const char *name;
const char *value = "";
int status;
exitcode_t status;
int opt;
enum {
OPT_h = (1 << 0),

View file

@ -40,7 +40,8 @@
int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int strings_main(int argc UNUSED_PARAM, char **argv)
{
int n, c, status = EXIT_SUCCESS;
int n, c;
exitcode_t status = EXIT_SUCCESS;
unsigned count;
off_t offset;
FILE *file;