1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
Author: Logan Rosen <logan@ubuntu.com>
Last-Update: Thu, 18 Feb 2016 01:24:16 -0500
Bug-Debian: https://bugs.debian.org/815041
Description: Fix implicit function declarations
--- gdpc-2.2.5.orig/main.c 2009-04-21 14:03:07.000000000 -0400
+++ gdpc-2.2.5/main.c 2013-04-07 21:21:46.208492431 -0400
@@ -848,9 +848,9 @@
#endif
for (i=0;i<NUMFRAMES;i++) {
- params->frameready[i] = g_mutex_new();
+ g_mutex_init (params->frameready[i]);
g_mutex_lock (params->frameready[i]);
- params->framedrawn[i] = g_mutex_new();
+ g_mutex_init (params->framedrawn[i]);
g_mutex_unlock (params->framedrawn[i]);
params->framedata[i] = NULL;
}
@@ -860,15 +860,15 @@
printf("Initialising filewait/EOF semaphores.\n");
#endif
- params->filewait = g_mutex_new();
+ g_mutex_init (params->filewait);
g_mutex_lock (params->filewait);
- params->atEnd = g_mutex_new();
+ g_mutex_init (params->atEnd);
#if Debug
printf("Starting filereading thread.\n");
#endif
- th_a = g_thread_create ((GThreadFunc) readinput, (gpointer) params, TRUE, NULL);
+ th_a = g_thread_try_new ("some_thread", (GThreadFunc) readinput, (gpointer) params, NULL);
if (th_a == NULL) {
fprintf(stderr, "Creating read thread failed.\n");
gtk_main_quit ();
@@ -927,8 +927,6 @@
/* Start gtk initialization. */
gtk_init (&argc, &argv);
- g_thread_init(NULL);
-
printf("\n gdpc version "GDPCVER", Copyright (C) 2000 Jonas Frantz\n");
printf(" gdpc comes with ABSOLUTELY NO WARRANTY; for details\n");
printf(" check out the documentation. This is free software, and\n");
|