diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-23 10:40:04 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-23 10:41:50 -0800 |
commit | 6cf8398f5f487762586801c25539d8fe5bb33b39 (patch) | |
tree | 685c02f96b94c252507b6d3bbb2bdb34f1be4527 /genl | |
parent | 3c7950af598beab378a291ee0540da438978a4b2 (diff) | |
download | iproute2-6cf8398f5f487762586801c25539d8fe5bb33b39.tar.gz |
libnetlink: change rtnl_send() to take void *
Avoid having to cast buffer being sent.
Diffstat (limited to 'genl')
-rw-r--r-- | genl/ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genl/ctrl.c b/genl/ctrl.c index 30ea4d70..38a97613 100644 --- a/genl/ctrl.c +++ b/genl/ctrl.c @@ -350,7 +350,7 @@ static int ctrl_list(int cmd, int argc, char **argv) nlh->nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; nlh->nlmsg_seq = rth.dump = ++rth.seq; - if (rtnl_send(&rth, (const char *) nlh, nlh->nlmsg_len) < 0) { + if (rtnl_send(&rth, nlh, nlh->nlmsg_len) < 0) { perror("Failed to send dump request\n"); goto ctrl_done; } |