On Monday 08 December 2008 15:26:03 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:
>
> 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’

i'm pretty sure these warnings would be there regardless.  gettimeofday means 
a missing header, and %d will always warn if the type isnt a signed int type.

feel free to post fixes for both things ;) ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
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