]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes
authorTimo Sirainen <tss@iki.fi>
Sun, 22 Jun 2003 19:23:54 +0000 (22:23 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 22 Jun 2003 19:23:54 +0000 (22:23 +0300)
--HG--
branch : HEAD

src/lib-index/mail-tree-redblack.c
src/lib/module-dir.c
src/lib/network.c

index 4a50b5b2672a89f19c5faf18c70b1906f818aefc..770861aa4a77feaf0aec29327b322d1208de1ba7 100644 (file)
@@ -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)
index e2a8757533ae1675417c831c1ef367a482366d4a..1f98a99115e4e087f4afc23069e63e87f6003a10 100644 (file)
@@ -48,9 +48,11 @@ static struct module *module_load(const char *path, const char *name)
        }
 
        /* 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);
index d75fd1df135002e5350abea4554fa0548933c292..6b21795aca3423203dede2c676c8fdfe79b0eb35 100644 (file)
@@ -522,7 +522,6 @@ const char *net_ip2addr(const struct ip_addr *ip)
                               (ip4 & 0x0000ff00) >> 8,
                               (ip4 & 0x000000ff));
 #endif
-       return 0;
 }
 
 int net_addr2ip(const char *addr, struct ip_addr *ip)