summaryrefslogtreecommitdiffstats
path: root/lib/nl.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-22 12:13:04 (GMT)
committerThomas Graf <tgraf@suug.ch>2010-11-22 12:13:04 (GMT)
commite52a09c5078364f0a645f407c797e68a2c1d5f04 (patch)
tree41ec65416103c790722d9e616cff4dbe087aaace /lib/nl.c
parent6545206187c97136d69c5a456257cafa104667bc (diff)
downloadlibnl-e52a09c5078364f0a645f407c797e68a2c1d5f04.zip
libnl-e52a09c5078364f0a645f407c797e68a2c1d5f04.tar.gz
libnl-e52a09c5078364f0a645f407c797e68a2c1d5f04.tar.bz2
nl: rename nlmsg_msg_size() to nlmsg_size(), nlmsg_len() -> nlmsg_datalen()
The old symbols are left around for compatibility.
Diffstat (limited to 'lib/nl.c')
-rw-r--r--lib/nl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nl.c b/lib/nl.c
index 4e09b9e..97a5df0 100644
--- a/lib/nl.c
+++ b/lib/nl.c
@@ -637,7 +637,7 @@ continue_reading:
else if (hdr->nlmsg_type == NLMSG_ERROR) {
struct nlmsgerr *e = nlmsg_data(hdr);
- if (hdr->nlmsg_len < nlmsg_msg_size(sizeof(*e))) {
+ if (hdr->nlmsg_len < nlmsg_size(sizeof(*e))) {
/* Truncated error message, the default action
* is to stop parsing. The user may overrule
* this action by returning NL_SKIP or