From 4a2a09a7bae99778d6e11df7da7d0a166815030f Mon Sep 17 00:00:00 2001 From: NotZed Date: Thu, 10 Feb 2000 05:03:43 +0000 Subject: Removed a bizarre comparison construct for converting case. 2000-02-10 NotZed * camel/hash-table-utils.c (g_strcase_hash): Removed a bizarre comparison construct for converting case. 2000-02-09 NotZed * camel/data-wrapper-repository.c (data_wrapper_repository_init): Uses case-insensitive compares. * camel/gmime-content-field.c (gmime_content_field_new): Uses case-insensitive compares. svn path=/trunk/; revision=1723 --- camel/hash-table-utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'camel/hash-table-utils.c') diff --git a/camel/hash-table-utils.c b/camel/hash-table-utils.c index fa326020cb..cbd75296dd 100644 --- a/camel/hash-table-utils.c +++ b/camel/hash-table-utils.c @@ -62,12 +62,10 @@ g_strcase_hash (gconstpointer v) { const char *s = (char*)v; const char *p; - char c; guint h=0, g; for(p = s; *p != '\0'; p += 1) { - c = isupper ((guchar)*p) ? tolower ((guchar)*p) : *p; - h = ( h << 4 ) + c; + h = ( h << 4 ) + toupper(*p); if ( ( g = h & 0xf0000000 ) ) { h = h ^ (g >> 24); h = h ^ g; -- cgit v1.2.3