]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/userdb: remove unneeded cast for dlsym
authorMike Yuan <me@yhndnzj.com>
Fri, 1 Mar 2024 10:48:39 +0000 (18:48 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 1 Mar 2024 10:59:50 +0000 (18:59 +0800)
src/shared/userdb.c

index 540573390c877d086c5ebb13f34fac074e28a74b..d262c82d63ba3be9eebb222a1148f63391a2b8a7 100644 (file)
@@ -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),