mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-02-01 16:24:22 +00:00
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>
This commit is contained in:
parent
a3da01c519
commit
fcbd0165fc
@ -125,7 +125,7 @@ static int get_ticks(__u32 *ticks, const char *str)
|
||||
static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
|
||||
struct nlmsghdr *n)
|
||||
{
|
||||
size_t dist_size = 0;
|
||||
int dist_size = 0;
|
||||
struct rtattr *tail;
|
||||
struct tc_netem_qopt opt;
|
||||
struct tc_netem_corr cor;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user