[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Re:use of struct timeval in sys_jiffies, UNIX port

From: Jonathan Larmour
Subject: Re: [lwip-users] Re:use of struct timeval in sys_jiffies, UNIX port
Date: Mon, 23 Jun 2008 13:40:08 +0100
User-agent: Thunderbird (X11/20070530)

R. D. Flowers, Chattanooga TN USA wrote:
>> From: address@hidden
>> unsigned long
>> sys_jiffies(void)
>> {
>>       struct timeval tv;
>>       unsigned long sec = tv.tv_sec;
>>       long usec = tv.tv_usec;
>>       gettimeofday(&tv,NULL);
> Unless it has changed from the documentation and from what's obvious, it
> IS exactly the call to gettimeofday that stuffs tv and all its members.
> You are trying to use one of those members to initialize usec before tv
> is defined.
> What am I missing ?

That this is exactly the problem he's reporting :).

eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine

reply via email to

[Prev in Thread] Current Thread [Next in Thread]