From 94c9cc51ebf08103c27aac92f89639b35345a482 Mon Sep 17 00:00:00 2001 From: "osdl.net!shemminger" Date: Mon, 14 Mar 2005 19:02:41 +0000 Subject: [PATCH] Style fix. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/m_estimator.c b/tc/m_estimator.c index 0f9808e5..78eda7a8 100644 --- a/tc/m_estimator.c +++ b/tc/m_estimator.c @@ -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);