aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-02-10 09:50:07 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-02-10 09:50:07 +0100
commite3ece7878bff0a32a992c1f5f340ad223c009679 (patch)
tree42f0a0fd2e0beeb7d3bce5f5a32a3525ef8ec6f8 /networking/libiproute/iproute.c
parentdf4e16c9af6d6270d91d17d31c6098ecb259e5cc (diff)
downloadbusybox-e3ece7878bff0a32a992c1f5f340ad223c009679.tar.gz
fix trivial build failure
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 14fc16c4d..393a376ac 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -190,6 +190,8 @@ static int FAST_FUNC print_route(const struct sockaddr_nl *who UNUSED_PARAM,
}
if (G_filter.flushb) {
+ struct nlmsghdr *fn;
+
/* We are creating route flush commands */
if (r->rtm_family == AF_INET6
@@ -201,12 +203,11 @@ static int FAST_FUNC print_route(const struct sockaddr_nl *who UNUSED_PARAM,
return 0;
}
- struct nlmsghdr *fn;
if (NLMSG_ALIGN(G_filter.flushp) + n->nlmsg_len > G_filter.flushe) {
if (flush_update())
bb_error_msg_and_die("flush");
}
- fn = (struct nlmsghdr*)(G_filter.flushb + NLMSG_ALIGN(G_filter.flushp));
+ fn = (void*)(G_filter.flushb + NLMSG_ALIGN(G_filter.flushp));
memcpy(fn, n, n->nlmsg_len);
fn->nlmsg_type = RTM_DELROUTE;
fn->nlmsg_flags = NLM_F_REQUEST;