From 1e3042a2b459cfb87a23f9f43bb9717679958439 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Thu, 26 Jan 2006 02:29:33 +0000 Subject: [PATCH] removed compile warnings git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@510 7f574dfc-610e-0410-a909-a81674777703 --- src/xmms.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xmms.c b/src/xmms.c index 47633ce2..68080e97 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -219,10 +219,10 @@ void *xmms_thread_func_dynamic(void *pvoid) case (PROJECT_XMMS) : /* make an effort to find the glib 1.2 shared lib */ - glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY) || - dlopen("libglib12.so", RTLD_LAZY) || - dlopen("libglib.so", RTLD_LAZY); - if (!glib_v1_2_handle) { + if ( ((glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY))==NULL) && + ((glib_v1_2_handle = dlopen("libglib12.so", RTLD_LAZY))==NULL) && + ((glib_v1_2_handle = dlopen("libglib.so", RTLD_LAZY))==NULL) ) + { ERR("unable to find glib 1.2 shared object lib!"); pthread_exit(NULL); }