From 94089ef7726cc25bffbd133fe5e1e16e0fd4654e Mon Sep 17 00:00:00 2001 From: Gerrit Renker Date: Tue, 21 Dec 2010 12:54:09 +0100 Subject: [PATCH] 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. --- include/utils.h | 2 +- ip/iproute.c | 6 +++--- lib/utils.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/utils.h b/include/utils.h index 595a7d6d..77c8e5a4 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 0d69290b..f3e7eb42 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;