mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
don't cast to timeval since timeval is for some reason not always a struct
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
This commit is contained in:
parent
c250dff3f6
commit
4277349743
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
* ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
|
||||||
|
@ -346,9 +346,14 @@ g_source_remove_by_source_data (gpointer source_data)
|
|||||||
void
|
void
|
||||||
g_get_current_time (GTimeVal *result)
|
g_get_current_time (GTimeVal *result)
|
||||||
{
|
{
|
||||||
|
struct timeval r;
|
||||||
g_return_if_fail (result != NULL);
|
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 */
|
/* Running the main loop */
|
||||||
|
7
gmain.c
7
gmain.c
@ -346,9 +346,14 @@ g_source_remove_by_source_data (gpointer source_data)
|
|||||||
void
|
void
|
||||||
g_get_current_time (GTimeVal *result)
|
g_get_current_time (GTimeVal *result)
|
||||||
{
|
{
|
||||||
|
struct timeval r;
|
||||||
g_return_if_fail (result != NULL);
|
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 */
|
/* Running the main loop */
|
||||||
|
Loading…
Reference in New Issue
Block a user