Don't include ctype.h needlessly. (#156424, Morten Welinder)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Oct 2004 05:23:40 +0000 (05:23 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 26 Oct 2004 05:23:40 +0000 (05:23 +0000)
2004-10-26  Matthias Clasen  <mclasen@redhat.com>

* glib/gutils.c:
* glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
Morten Welinder)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutils.c

index 7703a47..359db1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gutils.c: 
        * glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
        Morten Welinder)
 
index 7703a47..359db1d 100644 (file)
@@ -1,5 +1,6 @@
 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gutils.c: 
        * glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
        Morten Welinder)
 
index 7703a47..359db1d 100644 (file)
@@ -1,5 +1,6 @@
 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gutils.c: 
        * glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
        Morten Welinder)
 
index 7703a47..359db1d 100644 (file)
@@ -1,5 +1,6 @@
 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gutils.c: 
        * glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
        Morten Welinder)
 
index 7703a47..359db1d 100644 (file)
@@ -1,5 +1,6 @@
 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gutils.c: 
        * glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
        Morten Welinder)
 
index 4d4d306..4c619f2 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "config.h"
 
-#include <ctype.h>
-
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -72,7 +70,6 @@
 #  include <windows.h>
 #  undef STRICT
 #  include <lmcons.h>          /* For UNLEN */
-#  include <ctype.h>
 #endif /* G_PLATFORM_WIN32 */
 
 #ifdef G_OS_WIN32
@@ -429,7 +426,7 @@ g_parse_debug_string  (const gchar     *string,
            }
          
          for (i=0; i<nkeys; i++)
-           if (g_ascii_strncasecmp(keys[i].key, p, q - p) == 0 &&
+           if (g_ascii_strncasecmp (keys[i].key, p, q - p) == 0 &&
                keys[i].key[q - p] == '\0')
              result |= keys[i].value;