From 907a9f8e5a93f5bcd449643eb3916a656d634758 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 20 Dec 2016 13:47:11 +0100 Subject: src: get rid of aliases and compat This machinery was introduced to avoid sudden compilation breakage of old nftables releases. With the upcoming release of 0.7 (and 0.6 which is now 6 months old) this is not required anymore. Moreover, users gain nothing from older releases since they are half-boiled and buggy. So let's get rid of aliases now. Bump LIBVERSION and update map file. Signed-off-by: Pablo Neira Ayuso --- src/common.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index bf4176c..8b001fe 100644 --- a/src/common.c +++ b/src/common.c @@ -40,7 +40,7 @@ struct nlmsghdr *nftnl_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, return nlh; } -EXPORT_SYMBOL_ALIAS(nftnl_nlmsg_build_hdr, nft_nlmsg_build_hdr); +EXPORT_SYMBOL(nftnl_nlmsg_build_hdr); struct nftnl_parse_err *nftnl_parse_err_alloc(void) { @@ -54,13 +54,13 @@ struct nftnl_parse_err *nftnl_parse_err_alloc(void) return err; } -EXPORT_SYMBOL_ALIAS(nftnl_parse_err_alloc, nft_parse_err_alloc); +EXPORT_SYMBOL(nftnl_parse_err_alloc); void nftnl_parse_err_free(struct nftnl_parse_err *err) { xfree(err); } -EXPORT_SYMBOL_ALIAS(nftnl_parse_err_free, nft_parse_err_free); +EXPORT_SYMBOL(nftnl_parse_err_free); int nftnl_parse_perror(const char *msg, struct nftnl_parse_err *err) { @@ -80,7 +80,7 @@ int nftnl_parse_perror(const char *msg, struct nftnl_parse_err *err) return fprintf(stderr, "%s: Undefined error\n", msg); } } -EXPORT_SYMBOL_ALIAS(nftnl_parse_perror, nft_parse_perror); +EXPORT_SYMBOL(nftnl_parse_perror); int nftnl_cmd_header_snprintf(char *buf, size_t size, uint32_t cmd, uint32_t type, uint32_t flags) @@ -176,13 +176,13 @@ void nftnl_batch_begin(char *buf, uint32_t seq) { nftnl_batch_build_hdr(buf, NFNL_MSG_BATCH_BEGIN, seq); } -EXPORT_SYMBOL_ALIAS(nftnl_batch_begin, nft_batch_begin); +EXPORT_SYMBOL(nftnl_batch_begin); void nftnl_batch_end(char *buf, uint32_t seq) { nftnl_batch_build_hdr(buf, NFNL_MSG_BATCH_END, seq); } -EXPORT_SYMBOL_ALIAS(nftnl_batch_end, nft_batch_end); +EXPORT_SYMBOL(nftnl_batch_end); int nftnl_batch_is_supported(void) { @@ -241,4 +241,4 @@ err: mnl_nlmsg_batch_stop(b); return -1; } -EXPORT_SYMBOL_ALIAS(nftnl_batch_is_supported, nft_batch_is_supported); +EXPORT_SYMBOL(nftnl_batch_is_supported); -- cgit v1.2.3