summaryrefslogtreecommitdiffstats
path: root/examples/genl/genl-family-get.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-10-25 00:44:00 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-10-25 00:44:00 +0200
commitbae340593494739f873a2e00d6c8bcfc3777edc1 (patch)
tree3c3b16c0e87c9818bd736d619fccdaad56aefb04 /examples/genl/genl-family-get.c
parent23b58da79166cb3f37a822adfa63107896c7e129 (diff)
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 'examples/genl/genl-family-get.c')
-rw-r--r--examples/genl/genl-family-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/genl/genl-family-get.c b/examples/genl/genl-family-get.c
index b015466..be8da3c 100644
--- a/examples/genl/genl-family-get.c
+++ b/examples/genl/genl-family-get.c
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
genl->version = 1;
mnl_attr_put_u32(nlh, CTRL_ATTR_FAMILY_ID, GENL_ID_CTRL);
- mnl_attr_put_str_null(nlh, CTRL_ATTR_FAMILY_NAME, argv[1]);
+ mnl_attr_put_strz(nlh, CTRL_ATTR_FAMILY_NAME, argv[1]);
nl = mnl_socket_open(NETLINK_GENERIC);
if (nl == NULL) {