commit | 9f7401fa4967178a071c53498f6bdc460c7cc4ea | [log] [tgz] |
---|---|---|
author | Sabrina Dubroca <sd@queasysnail.net> | Fri Jun 03 16:45:46 2016 +0200 |
committer | Stephen Hemminger <shemming@brocade.com> | Wed Jun 08 09:30:37 2016 -0700 |
tree | ac2d6b48383a15a254f7936c7ef6fe65ea8f8448 | |
parent | 89ae502056f58a0177b9970f1f79a9683ac7fdd0 [diff] [blame] |
utils: add get_be{16, 32, 64}, use them where possible Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Acked-by: Phil Sutter <phil@nwl.cc>
diff --git a/tc/f_flower.c b/tc/f_flower.c index 306f056..fd2014b 100644 --- a/tc/f_flower.c +++ b/tc/f_flower.c
@@ -150,11 +150,11 @@ return -1; } - ret = get_u16(&port, str, 10); + ret = get_be16(&port, str, 10); if (ret) return -1; - addattr16(n, MAX_MSG, type, htons(port)); + addattr16(n, MAX_MSG, type, port); return 0; }