diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-25 00:44:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-10-25 00:44:00 +0200 |
commit | bae340593494739f873a2e00d6c8bcfc3777edc1 (patch) | |
tree | 3c3b16c0e87c9818bd736d619fccdaad56aefb04 /include/libmnl | |
parent | 23b58da79166cb3f37a822adfa63107896c7e129 (diff) | |
download | libmnl-bae340593494739f873a2e00d6c8bcfc3777edc1.tar.gz libmnl-bae340593494739f873a2e00d6c8bcfc3777edc1.zip |
attr: rename str_null from NULL away
A small little pedantism: NULL (as in, the pointer) isn't NUL (as in,
the character with value zero, '\0'). I propose to rename it to strz,
for the zero-terminated string (sometimes referred to as ASCIZ string,
but of course C isn't tied to ASCII).
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index a32fb1d..7094af2 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -89,7 +89,7 @@ extern void mnl_attr_put_u16(struct nlmsghdr *nlh, uint16_t type, uint16_t data) extern void mnl_attr_put_u32(struct nlmsghdr *nlh, uint16_t type, uint32_t data); extern void mnl_attr_put_u64(struct nlmsghdr *nlh, uint16_t type, uint64_t data); extern void mnl_attr_put_str(struct nlmsghdr *nlh, uint16_t type, const char *data); -extern void mnl_attr_put_str_null(struct nlmsghdr *nlh, uint16_t type, const char *data); +extern void mnl_attr_put_strz(struct nlmsghdr *nlh, uint16_t type, const char *data); /* TLV attribute nesting */ extern struct nlattr *mnl_attr_nest_start(struct nlmsghdr *nlh, uint16_t type); |