Fix warning in u32 from assignment in conditional

This commit is contained in:
Stephen Hemminger 2011-03-09 10:42:35 -08:00 committed by Stephen Hemminger
parent 8988b02ee1
commit d7ac9ad4f4
1 changed files with 2 additions and 1 deletions

View File

@ -432,7 +432,8 @@ static int parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel)
key = htonl(key);
mask = htonl(mask);
if (res = pack_key(sel, key, mask, off, offmask) < 0)
res = pack_key(sel, key, mask, off, offmask);
if (res < 0)
return -1;
*argc_p = argc;