From adae0f1a8967e5e853c98a336c51553c07c1d269 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 5 Apr 2010 18:23:25 +0200 Subject: rename mnl_nlmsg_payload_size() to mnl_nlmsg_get_payload_len() for consistency Signed-off-by: Pablo Neira Ayuso --- src/nlmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nlmsg.c b/src/nlmsg.c index ad387e7..274aa8e 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -38,12 +38,12 @@ size_t mnl_nlmsg_aligned_size(int len) } /** - * mnl_nlmsg_payload_size - get the size of the payload + * mnl_nlmsg_get_payload_len - get the size of the payload * @nlh: pointer to the header of the netlink message * * This function returns the size of the netlink payload */ -size_t mnl_nlmsg_payload_size(const struct nlmsghdr *nlh) +size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh) { return nlh->nlmsg_len - MNL_NLMSG_HDRLEN; } -- cgit v1.2.3