X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fnetns_other.c;h=b6570d3b9e58627576d254f8b7f3941f6298634f;hb=d12799878586a9ea5823fc51de5432495c94fe7a;hp=740d2b621ed7d3e0bb2357efb6304fb23a28d8f7;hpb=c4d466c830083e8ba58881d7ad03a90f6baf0754;p=mirror_frr.git diff --git a/lib/netns_other.c b/lib/netns_other.c index 740d2b621..b6570d3b9 100644 --- a/lib/netns_other.c +++ b/lib/netns_other.c @@ -18,16 +18,16 @@ */ -#if !defined(GNU_LINUX) && (defined(SUNOS_5) || defined(OPEN_BSD)) -/* SUNOS_5 or OPEN_BSD */ +#if !defined(GNU_LINUX) && defined(OPEN_BSD) +/* OPEN_BSD */ #include #include "ns.h" #include "log.h" #include "memory.h" -DEFINE_MTYPE_STATIC(LIB, NS, "NetNS Context") -DEFINE_MTYPE_STATIC(LIB, NS_NAME, "NetNS Name") +DEFINE_MTYPE_STATIC(LIB, NS, "NetNS Context"); +DEFINE_MTYPE_STATIC(LIB, NS_NAME, "NetNS Name"); static inline int ns_compare(const struct ns *ns, const struct ns *ns2); @@ -110,13 +110,6 @@ void ns_init(void) { } -/* API to retrieve default NS */ -ns_id_t ns_get_default_id(void) -{ - return NS_UNKNOWN; -} - - /* API that can be used to change from NS */ int ns_switchback_to_initial(void) {