aboutsummaryrefslogtreecommitdiffstats
path: root/camel/hash-table-utils.c
diff options
context:
space:
mode:
authorNotZed <notzed@zedzone.helixcode.com>2000-02-10 13:03:43 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-02-10 13:03:43 +0800
commit4a2a09a7bae99778d6e11df7da7d0a166815030f (patch)
tree6c7f2ca1ce6327075a40178f400fc74eaefcfd61 /camel/hash-table-utils.c
parent3ef8dbd93ad44e08503f69d4929428362fc383ea (diff)
downloadgsoc2013-evolution-4a2a09a7bae99778d6e11df7da7d0a166815030f.tar.gz
gsoc2013-evolution-4a2a09a7bae99778d6e11df7da7d0a166815030f.tar.zst
gsoc2013-evolution-4a2a09a7bae99778d6e11df7da7d0a166815030f.zip
Removed a bizarre comparison construct for converting case.
2000-02-10 NotZed <notzed@zedzone.helixcode.com> * camel/hash-table-utils.c (g_strcase_hash): Removed a bizarre comparison construct for converting case. 2000-02-09 NotZed <notzed@zedzone.helixcode.com> * 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
Diffstat (limited to 'camel/hash-table-utils.c')
-rw-r--r--camel/hash-table-utils.c4
1 files changed, 1 insertions, 3 deletions
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;