[monkey-bubble: 707/753] Remove unused include <ctype.h>. Remove unused include <ctype.h>. Remove



commit 08460bde1c9882215d6800a436b955ec90a1c03f
Author: Darin Adler <darin src gnome org>
Date:   Fri Jan 25 20:08:02 2002 +0000

    Remove unused include <ctype.h>. Remove unused include <ctype.h>. Remove
    
    	* help-converters/gnome-vfs-module/help-method.c: Remove unused include <ctype.h>.
    	* help-converters/info/html.c: Remove unused include <ctype.h>.
    	* help-converters/man/gnome-man2html.c: Remove unused include <ctype.h>.
    	* libgnome/gnome-config.c: (gnome_config_get_bool_with_default_):
    	Use g_ascii_tolower instead of tolower and remove include of <ctype.h>.
    	* libgnome/gnome-program.c: (rpmvercmp): Use g_ascii calls instead of
    	the locale-sensitive <ctype.h> calls and remove include of <ctype.h>.
    	* libgnome/gnome-score.c: (log_score): Use g_ascii_isspace instead of
    	isspace and remove include of <ctype.h>.
    	* libgnome/gnome-triggers.c: Remove unused include of <ctype.h>.

 libgnome/gnome-score.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 0a45df3..da773e8 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -36,7 +36,6 @@
 #include <string.h>
 #include <glib.h>
 #include <pwd.h>
-#include <ctype.h>
 #include <locale.h>
 #ifdef HAVE_SYS_FSUID_H
 #ifdef HAVE_SETFSGID
@@ -140,7 +139,7 @@ log_score (const gchar * progname, const gchar * level, gchar * username,
 	 {
 	     long ltime;
 	     i = strlen (buf) - 1;	/* Chomp */
-	     while (isspace (buf[i]))
+	     while (g_ascii_isspace (buf[i]))
 	       buf[i--] = '\0';
 
 	     if(sscanf(buf, "%f %ld %s", &ascore, &ltime, name) != 3)



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