[uClibc]sleep issue?

Manuel Novoa III mjn3 at codepoet.org
Fri May 16 19:35:40 UTC 2003


On Fri, May 16, 2003 at 01:25:13PM -0600, Manuel Novoa III wrote:
>     /* Ok.  Now normalize the struct vals and try again. */
>     if (mktime(&stm) == -1) {

Oops.  Forgot that time_t can be unsigned, since the standards
don't specify.  Change the above to

      if (mktime(&stm) == ((time_t)(-1))) {

Manuel


More information about the uClibc mailing list