diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2013-11-13 21:40:58 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2013-11-13 21:40:58 +0100 |
commit | 81bb21fe5313463ac9896984cd71cfc3455379ee (patch) | |
tree | c83aef759bf48ceb1567810c7a059307f7455bee /external/rcclibtranslate.c | |
parent | 2e1a735c1bb76094744a6112b092331e34c7db09 (diff) | |
download | librcc-81bb21fe5313463ac9896984cd71cfc3455379ee.tar.gz librcc-81bb21fe5313463ac9896984cd71cfc3455379ee.tar.bz2 librcc-81bb21fe5313463ac9896984cd71cfc3455379ee.tar.xz librcc-81bb21fe5313463ac9896984cd71cfc3455379ee.zip |
Avoid functions deprecated in glib 2.32
Diffstat (limited to 'external/rcclibtranslate.c')
-rw-r--r-- | external/rcclibtranslate.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/external/rcclibtranslate.c b/external/rcclibtranslate.c index 5f8670d..fb83222 100644 --- a/external/rcclibtranslate.c +++ b/external/rcclibtranslate.c @@ -42,7 +42,7 @@ #include "../src/rcctranslate.h" #include "../src/rccdb4.h" #include "rcclibtranslate.h" - +#include "compat.h" #ifdef HAVE_LIBTRANSLATE static TranslateSession *session = NULL; @@ -169,12 +169,12 @@ int rccLibTranslateInit(const char *rcc_home_dir) { free(dbname); } if (db4ctx) { - mutex = g_mutex_new(); - cond = g_cond_new(); + mutex = g_mutex_new_compat(); + cond = g_cond_new_compat(); if ((mutex)&&(cond)) queue = g_queue_new(); if (queue) - thread = g_thread_create(rccLibPostponed, NULL, TRUE, NULL); + thread = g_thread_create_compat(rccLibPostponed, NULL, TRUE); } #endif /* HAVE_LIBTRANSLATE */ @@ -203,11 +203,11 @@ void rccLibTranslateFree() { queue = NULL; } if (mutex) { - g_mutex_free(mutex); + g_mutex_free_compat(mutex); mutex = NULL; } if (cond) { - g_cond_free(cond); + g_cond_free_compat(cond); cond = NULL; } if (db4ctx) rccDb4FreeContext(db4ctx); |