diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-10 09:50:07 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-10 09:50:07 +0100 |
commit | e3ece7878bff0a32a992c1f5f340ad223c009679 (patch) | |
tree | 42f0a0fd2e0beeb7d3bce5f5a32a3525ef8ec6f8 | |
parent | df4e16c9af6d6270d91d17d31c6098ecb259e5cc (diff) | |
download | busybox-w32-e3ece7878bff0a32a992c1f5f340ad223c009679.tar.gz busybox-w32-e3ece7878bff0a32a992c1f5f340ad223c009679.tar.bz2 busybox-w32-e3ece7878bff0a32a992c1f5f340ad223c009679.zip |
fix trivial build failure
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/libiproute/iproute.c | 5 |
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, | |||
190 | } | 190 | } |
191 | 191 | ||
192 | if (G_filter.flushb) { | 192 | if (G_filter.flushb) { |
193 | struct nlmsghdr *fn; | ||
194 | |||
193 | /* We are creating route flush commands */ | 195 | /* We are creating route flush commands */ |
194 | 196 | ||
195 | if (r->rtm_family == AF_INET6 | 197 | if (r->rtm_family == AF_INET6 |
@@ -201,12 +203,11 @@ static int FAST_FUNC print_route(const struct sockaddr_nl *who UNUSED_PARAM, | |||
201 | return 0; | 203 | return 0; |
202 | } | 204 | } |
203 | 205 | ||
204 | struct nlmsghdr *fn; | ||
205 | if (NLMSG_ALIGN(G_filter.flushp) + n->nlmsg_len > G_filter.flushe) { | 206 | if (NLMSG_ALIGN(G_filter.flushp) + n->nlmsg_len > G_filter.flushe) { |
206 | if (flush_update()) | 207 | if (flush_update()) |
207 | bb_error_msg_and_die("flush"); | 208 | bb_error_msg_and_die("flush"); |
208 | } | 209 | } |
209 | fn = (struct nlmsghdr*)(G_filter.flushb + NLMSG_ALIGN(G_filter.flushp)); | 210 | fn = (void*)(G_filter.flushb + NLMSG_ALIGN(G_filter.flushp)); |
210 | memcpy(fn, n, n->nlmsg_len); | 211 | memcpy(fn, n, n->nlmsg_len); |
211 | fn->nlmsg_type = RTM_DELROUTE; | 212 | fn->nlmsg_type = RTM_DELROUTE; |
212 | fn->nlmsg_flags = NLM_F_REQUEST; | 213 | fn->nlmsg_flags = NLM_F_REQUEST; |