]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
tc: Use correct variable type for get_distribution() result
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 23 Nov 2011 21:15:19 +0000 (22:15 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 23 Nov 2011 22:46:24 +0000 (14:46 -0800)
commitfcbd0165fcf6d0efdfb02220ac77342ce0c0e224
treef81ca0cd5ad667335d14b6b8fe56cf02e3c66f0d
parenta3da01c519ed13714ad80be3a771e81ae10ea835
tc: Use correct variable type for get_distribution() result

get_distribution() returns an int.

cppcheck reported:
[tc/q_netem.c:243]: (style) Checking if unsigned variable 'dist_size' is less than zero.

The mismatch actually rendered the error checking
after get_distribution() ineffective.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
tc/q_netem.c