diff options
author | osdl.net!shemminger <osdl.net!shemminger> | 2005-03-14 19:02:41 +0000 |
---|---|---|
committer | osdl.net!shemminger <osdl.net!shemminger> | 2005-03-14 19:02:41 +0000 |
commit | 52f337c1c1d71c1c289ed12c159aaace148fb7b5 (patch) | |
tree | 75a31f5c68ea340bc1d77959fecc05cde19b3f6e /tc | |
parent | f9375b7018588081392860a9dd5035b655b5b66c (diff) |
Style fix.
2005/03/04 18:49:53-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
Diffstat (limited to 'tc')
-rw-r--r-- | tc/m_action.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tc/m_action.c b/tc/m_action.c index 0e7cfde2..ad2c137a 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -427,7 +427,7 @@ int tc_action_gd(int cmd, unsigned flags, int *argc_p, char ***argv_p) if (rtnl_open(&rth, 0) < 0) { fprintf(stderr, "Cannot open rtnetlink\n"); - exit(1); + return 1; } req.n.nlmsg_seq = rth.dump = ++rth.seq; @@ -436,13 +436,13 @@ int tc_action_gd(int cmd, unsigned flags, int *argc_p, char ***argv_p) if (rtnl_talk(&rth, &req.n, 0, 0, ans, NULL, NULL) < 0) { fprintf(stderr, "We have an error talking to the kernel\n"); rtnl_close(&rth); - exit (1); + return 1; } if (ans && do_print_action(NULL, &req.n, (void*)stdout) < 0) { fprintf(stderr, "Dump terminated\n"); rtnl_close(&rth); - exit(1); + return 1; } *argc_p = argc; @@ -484,7 +484,7 @@ int tc_action_modify(int cmd, unsigned flags, int *argc_p, char ***argv_p) if (rtnl_open(&rth, 0) < 0) { fprintf(stderr, "Cannot open rtnetlink\n"); - exit(1); + return 1; } @@ -546,7 +546,7 @@ int tc_act_list_or_flush(int argc, char **argv, int event) if (rtnl_open(&rth, 0) < 0) { fprintf(stderr, "Cannot open rtnetlink\n"); - exit(1); + return 1; } msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr)); @@ -554,7 +554,7 @@ int tc_act_list_or_flush(int argc, char **argv, int event) if (event == RTM_GETACTION) { if (rtnl_dump_request(&rth, event, (void *)&req.t, msg_size) < 0) { perror("Cannot send dump request"); - exit(1); + return 1; } ret = rtnl_dump_filter(&rth, do_print_action, stdout, NULL, NULL); } @@ -567,7 +567,7 @@ int tc_act_list_or_flush(int argc, char **argv, int event) if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) { fprintf(stderr, "We have an error flushing\n"); rtnl_close(&rth); - exit (1); + return 1; } } |