diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-12-21 12:54:09 +0100 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-02-25 12:49:42 -0800 |
commit | 94089ef7726cc25bffbd133fe5e1e16e0fd4654e (patch) | |
tree | f98f96fab9c1da3ea671e4f74638c4564dabdbc1 /lib | |
parent | 0c7a594541df84d3497681a8ecc09b05c1449dd0 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.c b/lib/utils.c index a60d884e..52f2b1f4 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -100,7 +100,7 @@ int get_unsigned(unsigned *val, const char *arg, int base) * a "raw" number. */ -int get_jiffies(unsigned *jiffies, const char *arg, int base, int *raw) +int get_jiffies(unsigned *jiffies, const char *arg, int *raw) { double t; unsigned long res; @@ -112,7 +112,7 @@ int get_jiffies(unsigned *jiffies, const char *arg, int base, int *raw) return -1; } else { - res = strtoul(arg,&p,base); + res = strtoul(arg, &p, 0); if (res > UINT_MAX) return -1; t = (double)res; |