On Tue, 13 Apr 2010 10:16:20 +0530, Arvind Umrao <[email protected]> wrote:
> CARD32 maxSecs = (CARD32)(~0) / (CARD32)MILLI_PER_SECOND;
> + CARD32 nowSec = GetTimeInMillis()/ (CARD32)MILLI_PER_SECOND;
>
> - if (seconds> maxSecs)
> - { /* only come here if we want to wait more than 49 days */
> - pAuth->secondsRemaining = seconds - maxSecs;
> - return maxSecs * MILLI_PER_SECOND;
> + CARD32 maxPossibleSec = maxSecs - nowSec;
What happens when GetTimeInMillis() returns (CARD32)(~0)?
--
[email protected]
pgpaX9VZljMmQ.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
