Re: compiling okay, success running gtk-app computer dependant

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

 



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

Sven Neumann <sven@xxxxxxxx> writes:

> edward hage <edha@xxxxxxxxx> 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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux