After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 102723 - GTime should be a typedef of time_t
GTime should be a typedef of time_t
Status: RESOLVED DUPLICATE of bug 101538
Product: glib
Classification: Platform
Component: general
2.2.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2003-01-07 05:52 UTC by James Cape
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch to fix this (584 bytes, patch)
2003-01-07 05:52 UTC, James Cape
none Details | Review

Description James Cape 2003-01-07 05:52:18 UTC
Summary says it all, using

typedef gint32 GTime;

prevents the programmer from using GTime as a replacement for time_t in
functions (like localtime_r) without typecasting.

typedef time_t GTime;

should probably be what is used.

If time_t is gint32 universally, then this -Wall warning fix shouldn't
break ABI compatibility (but I'm probably wrong)...
Comment 1 James Cape 2003-01-07 05:52:59 UTC
Created attachment 13396 [details] [review]
A patch to fix this
Comment 2 Owen Taylor 2003-01-07 14:45:21 UTC
time_t is definitely not universally 32bit.

*** This bug has been marked as a duplicate of 101538 ***