aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/libnl-tiny/src/cache_mngt.c6
-rw-r--r--package/libnl-tiny/src/genl_mngt.c3
-rw-r--r--package/libnl-tiny/src/include/netlink-local.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/package/libnl-tiny/src/cache_mngt.c b/package/libnl-tiny/src/cache_mngt.c
index d57d8364a8..5c32d2a1ff 100644
--- a/package/libnl-tiny/src/cache_mngt.c
+++ b/package/libnl-tiny/src/cache_mngt.c
@@ -73,6 +73,8 @@ struct nl_cache_ops *nl_cache_ops_associate(int protocol, int msgtype)
return NULL;
}
+#ifdef disabled
+
/**
* Lookup message type cache association
* @arg ops cache operations
@@ -118,6 +120,7 @@ void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops *, void *), void *arg)
for (ops = cache_ops; ops; ops = ops->co_next)
cb(ops, arg);
}
+#endif
/**
* Register a set of cache operations
@@ -178,7 +181,7 @@ int nl_cache_mngt_unregister(struct nl_cache_ops *ops)
* @name Global Cache Provisioning/Requiring
* @{
*/
-
+#ifdef disabled
/**
* Provide a cache for global use
* @arg cache cache to provide
@@ -244,6 +247,7 @@ struct nl_cache *nl_cache_mngt_require(const char *name)
return ops->co_major_cache;
}
+#endif
/** @} */
/** @} */
diff --git a/package/libnl-tiny/src/genl_mngt.c b/package/libnl-tiny/src/genl_mngt.c
index 5df9a6efc3..6c651796cb 100644
--- a/package/libnl-tiny/src/genl_mngt.c
+++ b/package/libnl-tiny/src/genl_mngt.c
@@ -136,6 +136,7 @@ errout:
}
+#ifdef disabled
char *genl_op2name(int family, int op, char *buf, size_t len)
{
struct genl_ops *ops;
@@ -158,7 +159,7 @@ char *genl_op2name(int family, int op, char *buf, size_t len)
strncpy(buf, "unknown", len - 1);
return NULL;
}
-
+#endif
/**
* @name Register/Unregister
diff --git a/package/libnl-tiny/src/include/netlink-local.h b/package/libnl-tiny/src/include/netlink-local.h
index f952bbea45..330100e805 100644
--- a/package/libnl-tiny/src/include/netlink-local.h
+++ b/package/libnl-tiny/src/include/netlink-local.h
@@ -95,6 +95,7 @@ extern int __str2flags(const char *, struct trans_tbl *, size_t);
extern void dump_from_ops(struct nl_object *, struct nl_dump_params *);
+#ifdef disabled
static inline struct nl_cache *dp_cache(struct nl_object *obj)
{
if (obj->ce_cache == NULL)
@@ -102,6 +103,7 @@ static inline struct nl_cache *dp_cache(struct nl_object *obj)
return obj->ce_cache;
}
+#endif
static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg)
{