Mercurial > audlegacy
diff src/audacious/signals.c @ 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 | f1c756f39e6c |
children | c942eaef7bc6 |
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