public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer
@ 2012-01-03 13:22 Markos Chandras
  2012-01-03 19:41 ` Garrett Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Markos Chandras @ 2012-01-03 13:22 UTC (permalink / raw)
  To: ltp-list

[-- Attachment #1: Type: text/plain, Size: 49 bytes --]

Hi, please review the attached patch

-- 
markos

[-- Attachment #2: 0017-network-lib6-asapi_04-Cast-pointer-arithmetic-to-pro.patch --]
[-- Type: text/plain, Size: 1029 bytes --]

From a80f7d1ab66cb2385a67ad1860f4860be6955a6d Mon Sep 17 00:00:00 2001
From: Markos Chandras <markos.chandras@imgtec.com>
Date: Thu, 22 Dec 2011 15:08:39 +0000
Subject: [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
 testcases/network/lib6/asapi_04.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/network/lib6/asapi_04.c b/testcases/network/lib6/asapi_04.c
index 9f7efbd..9c6ad3b 100644
--- a/testcases/network/lib6/asapi_04.c
+++ b/testcases/network/lib6/asapi_04.c
@@ -337,7 +337,7 @@ static int client(int prot, int sfd)
 			if (*p != 0xa5) {
 				tst_resm(TFAIL, "IPV6_CHECKSUM corrupt data "
 					"0x%02x != 0xa5 at offset %d in packet",
-					*p, p - rpbuf);
+					*p, (int)(p - rpbuf));
 				rv = 0;
 				break;
 			}
@@ -532,4 +532,4 @@ cleanup(void)
 	TEST_CLEANUP;
 }
 
-int TST_TOTAL = PTCOUNT + CSCOUNT;
\ No newline at end of file
+int TST_TOTAL = PTCOUNT + CSCOUNT;
-- 
1.7.1


[-- Attachment #3: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer
  2012-01-03 13:22 [LTP] [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer Markos Chandras
@ 2012-01-03 19:41 ` Garrett Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Garrett Cooper @ 2012-01-03 19:41 UTC (permalink / raw)
  To: Markos Chandras; +Cc: ltp-list

On Tue, Jan 3, 2012 at 5:22 AM, Markos Chandras
<Markos.Chandras@imgtec.com> wrote:
> Hi, please review the attached patch

    "%p" is better.
Thanks,
-Garrett

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-03 19:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-03 13:22 [LTP] [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer Markos Chandras
2012-01-03 19:41 ` Garrett Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox