summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <openvpp@barachs.net>2016-01-05 20:37:08 +0000
committerGerrit Code Review <gerrit@projectrotterdam.info>2016-01-05 20:37:08 +0000
commitec1a579f388a5bac307e8444fc9d9b342f28d235 (patch)
tree3c86eafea6aa83be0eb3fde3594b0c974c9c5b43
parent92be0df475f3165ef0d82da35250c77a223f2954 (diff)
parent4afb281d8d7dd2eed4271c8cb2fc3bc51690cee8 (diff)
Merge "Warning be gone."
-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;