+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
+Wed Dec 23 04:18:11 1998 George Lebl <jirka@5z.com>
+
+ * gmain.c: (g_get_current_time) don't cast to timeval since
+ timeval is for some reason not always a struct of longs, weird
+
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
void
g_get_current_time (GTimeVal *result)
{
+ struct timeval r;
g_return_if_fail (result != NULL);
- gettimeofday ((struct timeval *) result, NULL);
+ /*this is required on alpha, there the timeval structs are int's
+ not longs and a cast only would fail horribly*/
+ gettimeofday (&r, NULL);
+ result->tv_sec = r.tv_sec;
+ result->tv_usec = r.tv_usec;
}
/* Running the main loop */
void
g_get_current_time (GTimeVal *result)
{
+ struct timeval r;
g_return_if_fail (result != NULL);
- gettimeofday ((struct timeval *) result, NULL);
+ /*this is required on alpha, there the timeval structs are int's
+ not longs and a cast only would fail horribly*/
+ gettimeofday (&r, NULL);
+ result->tv_sec = r.tv_sec;
+ result->tv_usec = r.tv_usec;
}
/* Running the main loop */