Message ID | 1411642048-19451-2-git-send-email-santosh.shukla@linaro.org |
---|---|
State | Accepted |
Commit | d8ca83cab037cac1b0f80b029edff9d51ad14932 |
Headers | show |
Hi Ankit, Apply above two patches and let me know your feedback. Thanks. On 25 September 2014 16:17, Santosh Shukla <santosh.shukla@linaro.org> wrote: > Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> > --- > test/api_test/odp_timer_ping.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c > index 29a6392..7406a45 100644 > --- a/test/api_test/odp_timer_ping.c > +++ b/test/api_test/odp_timer_ping.c > @@ -305,7 +305,7 @@ static int ping_init(int count, char *name[]) > bzero(&dst_addr, sizeof(dst_addr)); > dst_addr.sin_family = hname->h_addrtype; > dst_addr.sin_port = 0; > - dst_addr.sin_addr.s_addr = *(long *)(void *)hname->h_addr; > + inet_pton(AF_INET, name[1], &(dst_addr.sin_addr.s_addr)); > } > printf("ping to addr %s\n", name[1]); > > -- > 1.7.9.5 >
Tested-by: Ankit Jindal <ankit.jindal@linaro.org> Thanks, Ankit On 25 September 2014 16:17, Santosh Shukla <santosh.shukla@linaro.org> wrote: > Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> > --- > test/api_test/odp_timer_ping.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c > index 29a6392..7406a45 100644 > --- a/test/api_test/odp_timer_ping.c > +++ b/test/api_test/odp_timer_ping.c > @@ -305,7 +305,7 @@ static int ping_init(int count, char *name[]) > bzero(&dst_addr, sizeof(dst_addr)); > dst_addr.sin_family = hname->h_addrtype; > dst_addr.sin_port = 0; > - dst_addr.sin_addr.s_addr = *(long *)(void *)hname->h_addr; > + inet_pton(AF_INET, name[1], &(dst_addr.sin_addr.s_addr)); > } > printf("ping to addr %s\n", name[1]); > > -- > 1.7.9.5 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp
diff --git a/test/api_test/odp_timer_ping.c b/test/api_test/odp_timer_ping.c index 29a6392..7406a45 100644 --- a/test/api_test/odp_timer_ping.c +++ b/test/api_test/odp_timer_ping.c @@ -305,7 +305,7 @@ static int ping_init(int count, char *name[]) bzero(&dst_addr, sizeof(dst_addr)); dst_addr.sin_family = hname->h_addrtype; dst_addr.sin_port = 0; - dst_addr.sin_addr.s_addr = *(long *)(void *)hname->h_addr; + inet_pton(AF_INET, name[1], &(dst_addr.sin_addr.s_addr)); } printf("ping to addr %s\n", name[1]);
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> --- test/api_test/odp_timer_ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)