Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-07-17 18:29:36 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2023-07-17 18:29:36 +0300
commitc484846c4459affa769b84cbd0b586f2bbaec828 (patch)
tree64be47b9451d3fd508a662b06db66ad3ddd03fb0 /networking
parenta6a102ec4c8d96fcfb968c88fbdae80f6142c7bf (diff)
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>
Diffstat (limited to 'networking')
-rw-r--r--networking/brctl.c2
-rw-r--r--networking/tc.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index 7b0270b51..0f8dc2f7a 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -538,7 +538,7 @@ int brctl_main(int argc UNUSED_PARAM, char **argv)
DIR *net;
struct dirent *ent;
int need_hdr = 1;
- int exitcode = EXIT_SUCCESS;
+ exitcode_t exitcode = EXIT_SUCCESS;
if (*argv) {
/* "show BR1 BR2 BR3" */
diff --git a/networking/tc.c b/networking/tc.c
index 43187f7ee..3a79fd2d9 100644
--- a/networking/tc.c
+++ b/networking/tc.c
@@ -502,7 +502,7 @@ int tc_main(int argc UNUSED_PARAM, char **argv)
};
struct rtnl_handle rth;
struct tcmsg msg;
- int ret, obj, cmd, arg;
+ int obj, cmd, arg;
char *dev = NULL;
INIT_G();
@@ -510,7 +510,6 @@ int tc_main(int argc UNUSED_PARAM, char **argv)
if (!*++argv)
bb_show_usage();
xrtnl_open(&rth);
- ret = EXIT_SUCCESS;
obj = index_in_substrings(objects, *argv++);
if (obj < 0)
@@ -625,5 +624,5 @@ int tc_main(int argc UNUSED_PARAM, char **argv)
if (ENABLE_FEATURE_CLEAN_UP) {
rtnl_close(&rth);
}
- return ret;
+ return EXIT_SUCCESS;
}