network/lib6/asapi_04: Cast pointer arithmetic to proper integer
PATCH 17/21 network/lib6/asapi_04: Cast pointer arithmetic to proper integer
Hi, please review the attached patch
Signature · 1 line
markos
From a80f7d1ab66cb2385a67ad1860f4860be6955a6d Mon Sep 17 00:00:00 2001
From: Markos Chandras <[email protected]>
Date: Thu, 22 Dec 2011 15:08:39 +0000
Subject: [PATCH 17/21] network/lib6/asapi_04: Cast pointer arithmetic to proper integer
--- testcases/network/lib6/asapi_04.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
testcases/network/lib6/asapi_04.c +2 -2
@@ -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 ; +int TST_TOTAL =PTCOUNT +CSCOUNT ;
Signature · 1 line
1.7.1
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 1 line · Markos Chandras
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list