From ea4b5f90662c63d6ceccc7c9c851dd183e65d0e6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 7 Nov 2010 20:38:35 +0100 Subject: nlmsg: rework mnl_nlmsg_fprintf This patch reworks mnl_nlmsg_fprintf. It breaks backward compatibility of this function, there was no way to improve it without doing so (and we are still in time to break thing, BTW). Signed-off-bu: Pablo Neira Ayuso --- examples/rtnl/rtnl-link-set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/rtnl/rtnl-link-set.c b/examples/rtnl/rtnl-link-set.c index 00afe27..28b376c 100644 --- a/examples/rtnl/rtnl-link-set.c +++ b/examples/rtnl/rtnl-link-set.c @@ -63,7 +63,8 @@ int main(int argc, char *argv[]) } portid = mnl_socket_get_portid(nl); - mnl_nlmsg_fprintf(stdout, nlh); + mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len, + sizeof(struct ifinfomsg)); if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) { perror("mnl_socket_send"); -- cgit v1.2.3