]> granicus.if.org Git - libnl/commit
nl-link-stats: prefer RTNL_LINK_STATS_MAX over __RTNL_LINK_STATS_MAX
authorThomas Haller <thaller@redhat.com>
Tue, 29 Nov 2016 11:33:27 +0000 (12:33 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 29 Nov 2016 11:37:00 +0000 (12:37 +0100)
commita078e364fb8d7da231becf9a7a1471a183b8c416
tree84414067edc26841a0de55472936aa3d23eddb9a
parent5040fc8a4994f7e3acc186639c37bf75ec332966
nl-link-stats: prefer RTNL_LINK_STATS_MAX over __RTNL_LINK_STATS_MAX

The result is basically the same, but I feel that __RTNL_LINK_STATS_MAX
is an internal variable that shouldn't be used. Thus, let's iterate
instead until <= MAX.

Signed-off-by: Thomas Haller <thaller@redhat.com>
src/nl-link-stats.c