Description: Remove obsolete call to g_thread_supported
 glib 2.32 breaks xnbd because it uses deprecated threading calls like g_thread_supported(). Removing them fixes xnbd again
 .
 Modified files:
 * xnbd_server.c: remove g_thread_supported()
 * xnbd_tester.c: remove g_thread_init()
 * xnbd_proxy.c: remove g_thread_init()

Author: Arno Töll <arno@debian.org>
Last-Update: Apr 26, 2012
Forwarded: yes

--- a/trunk/xnbd_server.c
+++ b/trunk/xnbd_server.c
@@ -797,9 +797,6 @@
 	const char *logpath = NULL;
 	int inetd = 0;
 
-	if (g_thread_supported())
-		err("glib thread not supported");
-
 	bzero(&xnbd, sizeof(xnbd));
 
 	g_log_set_default_handler(xutil_log_handler, (void *) &xnbd);
--- a/trunk/xnbd_proxy.c
+++ b/trunk/xnbd_proxy.c
@@ -224,8 +224,6 @@
 /* called in a proxy process */
 void proxy_initialize(struct xnbd_info *xnbd, struct xnbd_proxy *proxy)
 {
-	g_thread_init(NULL);
-
 
 	proxy->xnbd  = xnbd;
 
--- a/trunk/xnbd_tester.c
+++ b/trunk/xnbd_tester.c
@@ -666,7 +666,6 @@
 
 
 	set_sigactions();
-	g_thread_init(NULL);
 
 	/* @srcdisk: disk file for a direct mode, cache file for a redirect mode */
 	/* @dstdisk: temporary space */
