diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-14 08:16:49 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-14 08:17:19 (GMT) |
commit | 0b44562c48b819576002fb1c7336834cd361caf1 (patch) | |
tree | bd44afd85703dcc443199e4aa6c0c1cb663ce7d8 /lib/route | |
parent | 1c65ff714bb0a203113084dfbf548cc53bad7831 (diff) | |
download | libnl-0b44562c48b819576002fb1c7336834cd361caf1.zip libnl-0b44562c48b819576002fb1c7336834cd361caf1.tar.gz libnl-0b44562c48b819576002fb1c7336834cd361caf1.tar.bz2 |
route/mdb: hide rtnl_mdb_entry_alloc() from public API
"struct rtnl_mdb_entry" is a relatively simple object that keeps a few
data fields. But there are no public setters in the API, so it's not
useful to be able to allocate such an entry.
Hide from public API.
Also, it was already not listed in libnl-route-3.sym, and thus the
symbol was hidden anyway.
Diffstat (limited to 'lib/route')
-rw-r--r-- | lib/route/mdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/route/mdb.c b/lib/route/mdb.c index 6f43cd1..af94946 100644 --- a/lib/route/mdb.c +++ b/lib/route/mdb.c @@ -15,6 +15,8 @@ #define MDB_ATTR_ADDRESS 0x000004 #define MDB_ATTR_VID 0x000008 +static struct rtnl_mdb_entry *rtnl_mdb_entry_alloc(void); + static struct nl_cache_ops rtnl_mdb_ops; static struct nl_object_ops mdb_obj_ops; /** @endcond */ @@ -401,7 +403,7 @@ struct rtnl_mdb *rtnl_mdb_alloc(void) return (struct rtnl_mdb *) nl_object_alloc(&mdb_obj_ops); } -struct rtnl_mdb_entry *rtnl_mdb_entry_alloc(void) +static struct rtnl_mdb_entry *rtnl_mdb_entry_alloc(void) { struct rtnl_mdb_entry *mdb; |