summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-19 13:10:21 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-19 13:10:21 +0100
commit2a862c8b0b49fcac978a810fd298b2c9ae7b90e4 (patch)
tree99169d741ed2a1f477dea030763290fabdd9f9c4
parentb28767d124d074a0e8937ee880b2fe54ccc823b4 (diff)
downloadlibmnl-2a862c8b0b49fcac978a810fd298b2c9ae7b90e4.tar.gz
libmnl-2a862c8b0b49fcac978a810fd298b2c9ae7b90e4.zip
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 <jengelh@medozas.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/nlmsg.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nlmsg.c b/src/nlmsg.c
index a0dc416..4f5e503 100644
--- a/src/nlmsg.c
+++ b/src/nlmsg.c
@@ -56,18 +56,6 @@ EXPORT_SYMBOL size_t mnl_nlmsg_size(size_t len)
}
/**
- * 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
*