]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Switch helpers tc_core_{time2ktime,ktime2time} from long to unsigned as well.
authorAndreas Henriksson <andreas@fatal.se>
Fri, 12 Oct 2007 11:49:49 +0000 (13:49 +0200)
committerStephen Hemminger <shemminger@linux-foundation.org>
Fri, 12 Oct 2007 23:06:21 +0000 (16:06 -0700)
commit57a800d45a5f8f46c9ce4950599f17545413c82d
tree9d6aad06ee7c7bc3142a9b8c7e8b60793a3a1349
parentca78b0e7d4042be7f7283d551d433b76da7f312b
Switch helpers tc_core_{time2ktime,ktime2time} from long to unsigned as well.

Follow up patch to "Fix overflow in time2tick / tick2time." which switches
the remaining two helper functions from long to unsigned as well.
These functions are only used in "tc/q_hfsc.c" where both the passed argument
and the place the return value is stored are unsigned/u32 variables, so this
change should be safe to make but hasn't been tested as extensively as the
time2tick patch.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tc/tc_core.c
tc/tc_core.h