Re: compiling okay, success running gtk-app computer dependant
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-app-devel-list gnome org, edward hage <edha xs4all nl>, gtk-list gnome org
- Subject: Re: compiling okay, success running gtk-app computer dependant
- Date: Sat, 27 Nov 2004 16:11:46 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sven Neumann <sven gimp org> writes:
edward hage <edha xs4all nl> writes:
9: struct tm tms;
14:
15: tms = *localtime (¤t_time);
That's a rather interesting use of localtime(). I guess you wanted to
write this instead:
struct tm *tms;
tms = localtime (¤t_time);
or
localtime_r (¤t_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-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]