From: Mike Yuan Date: Fri, 1 Mar 2024 10:48:39 +0000 (+0800) Subject: shared/userdb: remove unneeded cast for dlsym X-Git-Tag: v256-rc1~676^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d3e48601b44213880706d9478c9cc21c3d9b95;p=thirdparty%2Fsystemd.git shared/userdb: remove unneeded cast for dlsym --- diff --git a/src/shared/userdb.c b/src/shared/userdb.c index 540573390c8..d262c82d63b 100644 --- a/src/shared/userdb.c +++ b/src/shared/userdb.c @@ -1455,7 +1455,7 @@ int userdb_block_nss_systemd(int b) { return 0; } - call = (int (*)(bool b)) dlsym(dl, "_nss_systemd_block"); + call = dlsym(dl, "_nss_systemd_block"); if (!call) /* If the file is installed but lacks the symbol we expect, things are weird, let's complain */ return log_debug_errno(SYNTHETIC_ERRNO(ELIBBAD),