On Mon, 2008-12-08 at 23:26 +0300, Dmitry Guryanov wrote:
> On Tuesday 02 December 2008 11:12:01 pm Mike Frysinger wrote:
> > On Tuesday 02 December 2008 03:59:09 Dmitry Guryanov wrote:
> > > sbrk has arguments of type intptr_t, which is long in on x86_64.
> > > There is following line in mmapstress03:
> > >
> > >   if (sbrk(-NUM_SEGS * pagesize) == NEG1) {
> > >
> > > here the type of argument is int, because of constant NUM_SEGS, and this
> > > test fails here on x86_64. So let constants will be long.
> >
> > seems wonky to declare size at all ... does it work if you drop the U ?
> > -mike
> 
> Yes, it works, but compiles with warnings:

Well, i do not find the following warnings on my i386 machines. Though i
have merged your patch, please feel free to provide fixes for the
warnings on x86_64 as well (as Mike proposed).

Regards--
Subrata

> 
> cc -I../../../../include -O -g -Wall    
> mmapstress03.c -L../../../../lib -lltp   -o mmapstress03
> mmapstress03.c: In function ‘main’:
> mmapstress03.c:138: warning: format ‘%d’ expects type ‘int’, but argument 3 
> has 
> type ‘long unsigned int’
> mmapstress03.c:139: warning: implicit declaration of function ‘gettimeofday’
> 


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to