From 7349a70634fa02838aea33be0ff1b5491ac8dee9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 30 Oct 2019 18:31:59 +0100 Subject: Deprecate untyped data setters These functions make assumptions on size of passed data pointer and therefore tend to hide programming mistakes. Instead either one of the type-specific setters or the generic *_set_data() setter should be used. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- src/flowtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flowtable.c') diff --git a/src/flowtable.c b/src/flowtable.c index f9101e8..ed91357 100644 --- a/src/flowtable.c +++ b/src/flowtable.c @@ -171,7 +171,7 @@ int nftnl_flowtable_set_data(struct nftnl_flowtable *c, uint16_t attr, return 0; } -EXPORT_SYMBOL(nftnl_flowtable_set); +void nftnl_flowtable_set(struct nftnl_flowtable *c, uint16_t attr, const void *data) __visible; void nftnl_flowtable_set(struct nftnl_flowtable *c, uint16_t attr, const void *data) { nftnl_flowtable_set_data(c, attr, data, nftnl_flowtable_validate[attr]); -- cgit v1.2.3