mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner
2002-03-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c (g_thread_create_posix_impl): Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner <daniel.elstner@gmx.net>.
This commit is contained in:
parent
4065bdd345
commit
5bbea163f2
@ -1,3 +1,9 @@
|
||||
2002-03-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread-posix.c (g_thread_create_posix_impl): Do a comparison,
|
||||
not an assignment, stupid! Spotted by Daniel Elstner
|
||||
<daniel.elstner@gmx.net>.
|
||||
|
||||
2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread-impl.c: Only compile most of this file, if
|
||||
|
@ -212,7 +212,7 @@ g_cond_timed_wait_posix_impl (GCond * cond,
|
||||
#ifdef G_THREADS_IMPL_POSIX
|
||||
timed_out = (result == ETIMEDOUT);
|
||||
#else /* G_THREADS_IMPL_DCE */
|
||||
timed_out = (result == -1) && (errno = EAGAIN);
|
||||
timed_out = (result == -1) && (errno == EAGAIN);
|
||||
#endif
|
||||
|
||||
if (!timed_out)
|
||||
|
Loading…
Reference in New Issue
Block a user