From: Gerrit Renker Date: Tue, 21 Dec 2010 11:54:09 +0000 (+0100) Subject: utils: get_jiffies always uses base=0 X-Git-Tag: v2.6.39~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897fb84fd9b872a544076f88430bc35fc12b7cc8;p=thirdparty%2Fiproute2.git utils: get_jiffies always uses base=0 get_jiffies() is in all places called in the same manner, with base=0; simplify argument list by putting the constant value into the function. --- diff --git a/include/utils.h b/include/utils.h index 3da699858..6cb3e42e8 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 base, int *raw); +extern int get_jiffies(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 0d69290b1..f3e7eb425 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -840,7 +840,7 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv) mxlock |= (1< UINT_MAX) return -1; t = (double)res;