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.
* 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,