]> git.proxmox.com Git - mirror_iproute2.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/10 12:24:53-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch

(Logical change 1.162)

tc/m_estimator.c

index 0f9808e5be6d76a4c3d50cd60c6e34eadef21ddb..78eda7a8a074333f739a9f79da675983f0bc2768 100644 (file)
@@ -23,7 +23,7 @@
 #include "utils.h"
 #include "tc_util.h"
 
-static void est_help(void) __attribute__((noreturn));
+static void est_help(void);
 
 static void est_help(void)
 {
@@ -31,7 +31,7 @@ static void est_help(void)
        fprintf(stderr, "  INTERVAL is interval between measurements\n");
        fprintf(stderr, "  TIME-CONST is averaging time constant\n");
        fprintf(stderr, "Example: ... est 1sec 8sec\n");
-       exit(-1);
+       return;
 }
 
 int parse_estimator(int *p_argc, char ***p_argv, struct tc_estimator *est)
@@ -54,7 +54,7 @@ int parse_estimator(int *p_argc, char ***p_argv, struct tc_estimator *est)
                invarg("estimator", "invalid estimator time constant");
        if (tc_setup_estimator(A, time_const, est) < 0) {
                fprintf(stderr, "Error: estimator parameters are out of range.\n");
-               exit(-1);
+               return -1;
        }
        if (show_raw)
                fprintf(stderr, "[estimator i=%u e=%u]\n", est->interval, est->ewma_log);