diff options
author | Thomas Haller <thaller@redhat.com> | 2017-06-15 15:32:40 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-06-15 15:54:07 (GMT) |
commit | 41f64c307b17e0986c9eea3c0c22a8ff869edfe6 (patch) | |
tree | 172908f1aa135b6446849859b7acc060999230a8 /lib/route | |
parent | 76464f641e7effb3383150ad8056688858a53b49 (diff) | |
download | libnl-41f64c307b17e0986c9eea3c0c22a8ff869edfe6.zip libnl-41f64c307b17e0986c9eea3c0c22a8ff869edfe6.tar.gz libnl-41f64c307b17e0986c9eea3c0c22a8ff869edfe6.tar.bz2 |
lib/route/cls/u32.c: use UCHAR_MAX define instead of numeric 255
Diffstat (limited to 'lib/route')
-rw-r--r-- | lib/route/cls/u32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/cls/u32.c b/lib/route/cls/u32.c index 366fc19..0078888 100644 --- a/lib/route/cls/u32.c +++ b/lib/route/cls/u32.c @@ -628,7 +628,7 @@ int rtnl_u32_add_key(struct rtnl_cls *cls, uint32_t val, uint32_t mask, if (!sel) return -NLE_NOMEM; - if (sel->nkeys == 255) + if (sel->nkeys == UCHAR_MAX) return -NLE_NOMEM; err = nl_data_append(u->cu_selector, NULL, sizeof(struct tc_u32_key)); |