changeset 4069:b26a96a5da69

change code a bit to avoid using strncasecmp which gives a warning here
author mf0102 <0102@gmx.at>
date Thu, 06 Dec 2007 16:55:32 +0100
parents e637466e4512
children 040243a50bd3 5f6c0c76222d
files src/audacious/signals.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/signals.c	Thu Dec 06 05:29:41 2007 +0300
+++ b/src/audacious/signals.c	Thu Dec 06 16:55:32 2007 +0100
@@ -23,14 +23,10 @@
 
 #include <glib.h>
 #include <glib/gi18n.h>
-#include <glib/gprintf.h>
 #include <config.h>
 #include <stdlib.h>
-#include <unistd.h>
-#include <sys/types.h>
 #include <pthread.h>	/* for pthread_sigmask() */
 #include <signal.h>
-#include <strings.h>
 
 #ifdef HAVE_EXECINFO_H
 # include <execinfo.h>
@@ -245,7 +241,7 @@
         gchar str[1024];
         confstr(_CS_GNU_LIBPTHREAD_VERSION, str, sizeof(str));
 
-        if (!strncasecmp("linuxthreads", str, 12))
+        if (g_ascii_strncasecmp("linuxthreads", str, 12) == 0)
             return TRUE;
     }
 #endif