This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 6ab6aa876354b68922e3fa038492a01beeb687a7 (commit) from d766eab7821e292f112b9e80b430656cfa7027d1 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 6ab6aa876354b68922e3fa038492a01beeb687a7 Author: Petri Savolainen petri.savolainen@nokia.com Date: Wed Oct 9 12:30:17 2019 +0300
example: ping: initialize len allways
Initialize len allways to make an older compiler happy. It complains about potentially uninitialized variable, but this should happen only when odp_packet_l4_ptr() returns NULL (which is checked first).
Signed-off-by: Petri Savolainen petri.savolainen@nokia.com Reviewed-by: Matias Elo matias.elo@nokia.com
diff --git a/example/ping/odp_ping.c b/example/ping/odp_ping.c index 819d4dd82..750f3a9e3 100644 --- a/example/ping/odp_ping.c +++ b/example/ping/odp_ping.c @@ -492,11 +492,11 @@ static uint16_t update_chksum(uint16_t chksum, uint16_t old, uint16_t new)
static void icmp_reply(test_global_t *global, odp_packet_t pkt) { - uint32_t len; uint32_t dst_ip; odph_ipv4hdr_t *ip_hdr; odph_ethhdr_t *eth_hdr; uint16_t old, new; + uint32_t len = 0; int index = odp_packet_input_index(pkt); odp_pktout_queue_t pktout = global->pktio[index].pktout; odph_ethaddr_t *eth_addr = &global->pktio[index].eth_addr;
-----------------------------------------------------------------------
Summary of changes: example/ping/odp_ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive