From 2a862c8b0b49fcac978a810fd298b2c9ae7b90e4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 19 Nov 2010 13:10:21 +0100 Subject: nlmsg: remove unused function mnl_nlmsg_aligned_size() With the new CFLAGS, a notification pops up: nlmsg.c:64:8: warning: no previous prototype for "mnl_nlmsg_aligned_size" Marking it thus as static reveals it can be removed. nlmsg.c:64:15: warning: "mnl_nlmsg_aligned_size" defined but not used Signed-off-by: Jan Engelhardt Signed-off-by: Pablo Neira Ayuso --- src/nlmsg.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/nlmsg.c b/src/nlmsg.c index a0dc416..4f5e503 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -55,18 +55,6 @@ EXPORT_SYMBOL size_t mnl_nlmsg_size(size_t len) return len + MNL_NLMSG_HDRLEN; } -/** - * mnl_nlmsg_aligned_size - calculate the aligned size of Netlink messages - * \param len length of the Netlink payload - * - * This function returns the size of a netlink message (header plus payload) - * with alignment. - */ -size_t mnl_nlmsg_aligned_size(size_t len) -{ - return MNL_ALIGN(mnl_nlmsg_size(len)); -} - /** * mnl_nlmsg_get_payload_len - get the length of the Netlink payload * \param nlh pointer to the header of the Netlink message -- cgit v1.2.3