]> granicus.if.org Git - libnl/commit
link: document sk == NULL case for rtnl_link_alloc_cache()
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 20 Mar 2014 17:45:45 +0000 (10:45 -0700)
committerThomas Haller <thaller@redhat.com>
Thu, 20 Mar 2014 18:37:37 +0000 (19:37 +0100)
commit67a704676c9ccc153f87aa86cd0a444f42608162
tree946fbbc0bb5e8b7bdee338412a63b7b9fc177148
parent015c4ee59b786fec35118c2a963532b3e05ba5a2
link: document sk == NULL case for rtnl_link_alloc_cache()

When sk == NULL, rtnl_link_alloc_cache() returns 0 but the cache
is still empty. We should document this behavior, otherwise it is confusing.

Cc: Thomas Haller <thaller@redhat.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/link.c