From bae340593494739f873a2e00d6c8bcfc3777edc1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 25 Oct 2010 00:44:00 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/libmnl/libmnl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libmnl/libmnl.h') 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); -- cgit v1.2.3