Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1564:e291bf36d57f HEAD
Compiler warning fixes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Jun 2003 22:23:54 +0300 |
parents | 1ffb486b0ca6 |
children | 97572a77243a |
files | src/lib-index/mail-tree-redblack.c src/lib/module-dir.c src/lib/network.c |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-tree-redblack.c Thu Jun 19 05:00:25 2003 +0300 +++ b/src/lib-index/mail-tree-redblack.c Sun Jun 22 22:23:54 2003 +0300 @@ -40,7 +40,7 @@ #define RBNULL 0 /* If highest bit in node_count is set, the node is red. */ -#define RED_MASK (1 << (SIZEOF_INT*CHAR_BIT-1)) +#define RED_MASK (1U << (SIZEOF_INT*CHAR_BIT-1)) #define IS_NODE_BLACK(node) \ (((node).node_count & RED_MASK) == 0)
--- a/src/lib/module-dir.c Thu Jun 19 05:00:25 2003 +0300 +++ b/src/lib/module-dir.c Sun Jun 22 22:23:54 2003 +0300 @@ -48,9 +48,11 @@ } /* get our init func */ - init = get_symbol(path, handle, t_strconcat(name, "_init", NULL)); + init = (void (*)()) get_symbol(path, handle, + t_strconcat(name, "_init", NULL)); deinit = init == NULL ? NULL : - get_symbol(path, handle, t_strconcat(name, "_deinit", NULL)); + (void (*)()) get_symbol(path, handle, + t_strconcat(name, "_deinit", NULL)); if (init == NULL || deinit == NULL) { (void)dlclose(handle);