From ef14b780b4d6c6581caeca022a18c37ba672eb51 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Mon, 31 Jul 2017 04:28:16 +0000 Subject: [PATCH] src/modules.c: misc cleanup for compiler warnings modules.c:799:37: warning: cast from function call of type 'void *' to non-matching type 'uintptr_t' (aka 'unsigned long') [-Wbad-function-cast] (... and 1 more of the same) Redundant double-cast removed. --- src/modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules.c b/src/modules.c index c9f7fccb..c54a8771 100644 --- a/src/modules.c +++ b/src/modules.c @@ -796,9 +796,9 @@ load_a_module(const char *path, int warn, int core) * as a single int in order to determine the API version. * -larne. */ - mapi_version = (int *) (uintptr_t) dlsym(tmpptr, "_mheader"); + mapi_version = (int *) dlsym(tmpptr, "_mheader"); if((mapi_version == NULL - && (mapi_version = (int *) (uintptr_t) dlsym(tmpptr, "__mheader")) == NULL) + && (mapi_version = (int *) dlsym(tmpptr, "__mheader")) == NULL) || MAPI_MAGIC(*mapi_version) != MAPI_MAGIC_HDR) { sendto_realops_snomask(SNO_GENERAL, L_ALL,