]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Style fix.
authorosdl.net!shemminger <osdl.net!shemminger>
Mon, 14 Mar 2005 19:02:41 +0000 (19:02 +0000)
committerosdl.net!shemminger <osdl.net!shemminger>
Mon, 14 Mar 2005 19:02:41 +0000 (19:02 +0000)
2005/03/04 18:49:53-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch

(Logical change 1.162)

tc/m_action.c

index 0e7cfde28450ca3e413d00c21b7fae64ee1702bf..ad2c137a1fc060bfe4629af313ebacb735ec8fae 100644 (file)
@@ -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;
                }
 
        }