gnome-netstatus r740 - in trunk: . src



Author: diegoe
Date: Wed Nov 26 20:44:29 2008
New Revision: 740
URL: http://svn.gnome.org/viewvc/gnome-netstatus?rev=740&view=rev

Log:
Use g_ascii_strncasecmp instead of g_strncasecmp

Fixes bug #560431.

Modified:
   trunk/ChangeLog
   trunk/src/netstatus-sysdeps.c

Modified: trunk/src/netstatus-sysdeps.c
==============================================================================
--- trunk/src/netstatus-sysdeps.c	(original)
+++ trunk/src/netstatus-sysdeps.c	Wed Nov 26 20:44:29 2008
@@ -544,16 +544,16 @@
   if (signal_strength)
     *signal_strength = 0;
 
-  if (g_strncasecmp (iface, "an",   2) &&
-      g_strncasecmp (iface, "wi",   2) &&
-      g_strncasecmp (iface, "ath",  3) &&
-      g_strncasecmp (iface, "ndis", 4) &&
-      g_strncasecmp (iface, "ipw",  3) &&
-      g_strncasecmp (iface, "iwi",  3) &&
-      g_strncasecmp (iface, "acx",  3))
+  if (g_ascii_strncasecmp (iface, "an",   2) &&
+      g_ascii_strncasecmp (iface, "wi",   2) &&
+      g_ascii_strncasecmp (iface, "ath",  3) &&
+      g_ascii_strncasecmp (iface, "ndis", 4) &&
+      g_ascii_strncasecmp (iface, "ipw",  3) &&
+      g_ascii_strncasecmp (iface, "iwi",  3) &&
+      g_ascii_strncasecmp (iface, "acx",  3))
     return error_message;
 
-  if (g_strncasecmp (iface, "an", 2) == 0)
+  if (g_ascii_strncasecmp (iface, "an", 2) == 0)
     {
       error_message = get_an_data (iface, signal_strength);
       *is_wireless = TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]