diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-10 23:00:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-10 23:00:56 +0000 |
commit | dcc2e89b2e0a99645b4f49360c3b76958730563e (patch) | |
tree | 824e1fb77f05e94a3b4cb48e051728eb9bd519a3 /src/lib-config | |
parent | f8aa81b73c83b97aff8cf24244e0bb183a35d59c (diff) | |
download | irssi-dcc2e89b2e0a99645b4f49360c3b76958730563e.zip |
Enabled lots of GCC warnings, fixed those that were easy to fix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@456 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config')
-rw-r--r-- | src/lib-config/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib-config/parse.c b/src/lib-config/parse.c index 0032b824..ba5d9b34 100644 --- a/src/lib-config/parse.c +++ b/src/lib-config/parse.c @@ -28,12 +28,12 @@ static int g_istr_equal(gconstpointer v, gconstpointer v2) /* a char* hash function from ASU */ static unsigned int g_istr_hash(gconstpointer v) { - const char *s = (char *) v; + const char *s = (const char *) v; unsigned int h = 0, g; while (*s != '\0') { h = (h << 4) + toupper(*s); - if ((g = h & 0xf0000000)) { + if ((g = h & 0xf0000000UL)) { h = h ^ (g >> 24); h = h ^ g; } |