From: Gerrit Renker Date: Fri, 25 Feb 2011 20:54:37 +0000 (-0800) Subject: iproute: rename 'get_jiffies' since it uses msecs X-Git-Tag: v2.6.39~13^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d03dc356df24d55443535eace247b93ff47b4e;p=thirdparty%2Fiproute2.git iproute: rename 'get_jiffies' since it uses msecs The get_jiffies() function retrieves rtt-type values in units of milliseconds. This patch updates the function name accordingly, following the pattern given by dst_metric() <=> dst_metric_rtt(). --- diff --git a/include/utils.h b/include/utils.h index 77c8e5a46..47f8e07da 100644 --- a/include/utils.h +++ b/include/utils.h @@ -79,7 +79,7 @@ extern int mask2bits(__u32 netmask); extern int get_integer(int *val, const char *arg, int base); extern int get_unsigned(unsigned *val, const char *arg, int base); -extern int get_jiffies(unsigned *val, const char *arg, int *raw); +extern int get_time_rtt(unsigned *val, const char *arg, int *raw); #define get_byte get_u8 #define get_ushort get_u16 #define get_short get_s16 diff --git a/ip/iproute.c b/ip/iproute.c index d48e743bf..06d2507ca 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -835,7 +835,7 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv) mxlock |= (1<= 1 */ - *jiffies = t; - if (*jiffies < t) - *jiffies += 1; + *val = t; + if (*val < t) + *val += 1; return 0;