From: osdl.net!shemminger Date: Mon, 30 Aug 2004 20:54:46 +0000 (+0000) Subject: Change name of tablefactor. X-Git-Tag: v2_6_9-jamal~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c4ee1b4c03e83dc42c59e2b6a2b5ee63408b3d;p=thirdparty%2Fiproute2.git Change name of tablefactor. (Logical change 1.73) --- diff --git a/tc/normal.c b/tc/normal.c index 8926b521d..6ec2600a5 100644 --- a/tc/normal.c +++ b/tc/normal.c @@ -12,7 +12,7 @@ #include #define TABLESIZE 16384 -#define TABLEFACTOR TCA_NETEM_TABLEFACTOR +#define TABLEFACTOR NETEM_DIST_SCALE static double normal(double x, double mu, double sigma) @@ -38,10 +38,8 @@ main(int argc, char **argv) table[i] = x; } - printf( -"# This is the distribution table for the normal distribution.\n" - ); - + + printf("# This is the distribution table for the normal distribution.\n"); for (i = n = 0; i < TABLESIZE; i += 4) { int value = (int) rint(table[i]*TABLEFACTOR); if (value < SHRT_MIN) value = SHRT_MIN; diff --git a/tc/pareto.c b/tc/pareto.c index 61cd6298f..8aa647b62 100644 --- a/tc/pareto.c +++ b/tc/pareto.c @@ -12,7 +12,7 @@ static const double a=3.0; #define TABLESIZE 16384 -#define TABLEFACTOR TCA_NETEM_TABLEFACTOR +#define TABLEFACTOR NETEM_DIST_SCALE int main(int argc, char **argv) @@ -20,9 +20,7 @@ main(int argc, char **argv) int i, n; double dvalue; - printf( -"# This is the distribution table for the pareto distribution.\n" - ); + printf("# This is the distribution table for the pareto distribution.\n"); for (i = 65536, n = 0; i > 0; i -= 16) { dvalue = (double)i/(double)65536; diff --git a/tc/paretonormal.c b/tc/paretonormal.c index d6c5273d7..b5ce91523 100644 --- a/tc/paretonormal.c +++ b/tc/paretonormal.c @@ -21,7 +21,7 @@ #include #define TABLESIZE 16384 -#define TABLEFACTOR TCA_NETEM_TABLEFACTOR +#define TABLEFACTOR NETEM_DIST_SCALE static double normal(double x, double mu, double sigma)