aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-japi
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2016-01-04 22:14:40 -0500
committerDave Wallace <dwallacelf@gmail.com>2016-01-04 22:14:56 -0500
commit4afb281d8d7dd2eed4271c8cb2fc3bc51690cee8 (patch)
tree95d77f05ede1880db4b3531e9c6c0f28af367fa8 /vpp-japi
parent66cc181e516128fbb99bb0e46ab5b2db6d258428 (diff)
Warning be gone.
Change-Id: I683298c9f1dbff4c1067fb3004b5554fdc8b4ee1 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'vpp-japi')
-rw-r--r--vpp-japi/japi/vppjni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-japi/japi/vppjni.c b/vpp-japi/japi/vppjni.c
index 5747d9aa73e..6e4d6ee57c5 100644
--- a/vpp-japi/japi/vppjni.c
+++ b/vpp-japi/japi/vppjni.c
@@ -1556,7 +1556,7 @@ static void vl_api_ip_address_details_t_handler (vl_api_ip_address_details_t * m
if (!jm->is_ipv6) {
ipv4_address_t *address = 0;
vec_add2(jm->ipv4_addresses, address, 1);
- address->ip = *(u32*)mp->ip;
+ memcpy(&address->ip, mp->ip, 4);
address->prefix_length = mp->prefix_length;
} else {
ipv6_address_t *address = 0;