-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sven Neumann <[EMAIL PROTECTED]> writes:

> edward hage <[EMAIL PROTECTED]> writes:

>> 9:   struct tm tms;
>
>> 14:
>> 15:  tms = *localtime (&current_time);
>
> That's a rather interesting use of localtime(). I guess you wanted to
> write this instead:
>
>   struct tm *tms;
>
>   tms = localtime (&current_time);

or

localtime_r (&current_time, &tms);

which doesn't use a statically-allocated structure internally (and is
therefore thread-safe).


- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFBqKdBVcFcaSW/uEgRArsHAJsG/5iTi264aL8ECVnD0pEMWiU8XACfUeA7
uZu2FeiI/E1zxqG1VtuBC2I=
=5hTQ
-----END PGP SIGNATURE-----
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to