From patchwork Thu Sep 25 10:47:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shukla X-Patchwork-Id: 37917 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 37D3420560 for ; Thu, 25 Sep 2014 10:48:13 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id hi2sf4481714wib.2 for ; Thu, 25 Sep 2014 03:48:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=zAdaNZGO5fj+ydt5VgqYcRtiwzSwmfou/lHiomMKmyk=; b=hhl+B2O6GV7H7U1WlNvDz5hPwnO8kczz33glXHxTiJfgR3XKT4rzIs+FwQ3Z883Ku6 thUjnMG7rk8ZhnKIlut4Et+FDvov5fgDmJ9nZqjFiilJs0Zso2tH9OKU8/V91I02drn2 sNQ7LTV7bH0Yf/fVAoADxFuOEEGSS9FLEBqz3EfjE+EEZYoxsZ7uCmf4QRLb1kZUFyIb j0cn35JFgLffatk+9e9I4OropazLjOs/OGeC1hyi8ThKOhUxluE344r2KA7dsyp7AVtJ xTjbUIMOjjdRhnfWL8pABkgEA5rUYFjgablLTB0ad9/ec22gSwRM7f+aKQ6OeOZK9Tdg N4TA== X-Gm-Message-State: ALoCoQmtWFGrlxyjVsBq0EiK+RLofc6WfbI8CiKro8Ub0Tx88cIfXPudXl1nsbxBEy14N9z8LUoe X-Received: by 10.112.76.229 with SMTP id n5mr1981120lbw.8.1411642092310; Thu, 25 Sep 2014 03:48:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.170 with SMTP id z10ls254934laj.73.gmail; Thu, 25 Sep 2014 03:48:12 -0700 (PDT) X-Received: by 10.152.20.132 with SMTP id n4mr12424675lae.86.1411642091991; Thu, 25 Sep 2014 03:48:11 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id bh7si2414680lbb.91.2014.09.25.03.48.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 03:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id pv20so2782934lab.10 for ; Thu, 25 Sep 2014 03:48:11 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr12297109lac.44.1411642091846; Thu, 25 Sep 2014 03:48:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp727649lbb; Thu, 25 Sep 2014 03:48:11 -0700 (PDT) X-Received: by 10.224.103.65 with SMTP id j1mr17537839qao.17.1411642090701; Thu, 25 Sep 2014 03:48:10 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id s8si1896876qad.122.2014.09.25.03.48.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 25 Sep 2014 03:48:10 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XX6an-0008Fu-9E; Thu, 25 Sep 2014 10:48:09 +0000 Received: from mail-pd0-f181.google.com ([209.85.192.181]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XX6ah-0008Fc-Ce for lng-odp@lists.linaro.org; Thu, 25 Sep 2014 10:48:03 +0000 Received: by mail-pd0-f181.google.com with SMTP id r10so10229492pdi.26 for ; Thu, 25 Sep 2014 03:47:57 -0700 (PDT) X-Received: by 10.66.255.69 with SMTP id ao5mr17517580pad.19.1411642077777; Thu, 25 Sep 2014 03:47:57 -0700 (PDT) Received: from santosh-Latitude-E5530-non-vPro.10.0.0.5 ([111.93.218.67]) by mx.google.com with ESMTPSA id qp9sm1836084pbc.31.2014.09.25.03.47.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 03:47:56 -0700 (PDT) From: Santosh Shukla To: lng-odp@lists.linaro.org Date: Thu, 25 Sep 2014 16:17:28 +0530 Message-Id: <1411642048-19451-2-git-send-email-santosh.shukla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411642048-19451-1-git-send-email-santosh.shukla@linaro.org> References: <1411642048-19451-1-git-send-email-santosh.shukla@linaro.org> X-Topics: timers patch Subject: [lng-odp] [ODP/PATCH 2/2] test_api: timer: big endian fix X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: santosh.shukla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Santosh Shukla Tested-by: Ankit Jindal --- 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]);