From: Yu Watanabe Date: Wed, 20 May 2026 01:08:11 +0000 (+0900) Subject: tree-wide: move static dl handles into their dlopen_*() functions (#42168) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=318bf0ca75d9054de662e95db406d6b11bc36a82;p=thirdparty%2Fsystemd.git tree-wide: move static dl handles into their dlopen_*() functions (#42168) Each dlopen_*() wrapper kept its dl handle as a file-scope 'static void *xxx_dl = NULL;' even though only the wrapper itself ever referenced it. Move each one inside the corresponding function so its scope matches its actual use, leaving the rest of each translation unit free of the unused file-scope name. In pcre2-util.c the assert(pcre2_dl) in pattern_matches_and_log() becomes assert(sym_pcre2_match), which carries the same invariant (pattern_compile_and_log() ran dlopen_pcre2()). --- 318bf0ca75d9054de662e95db406d6b11bc36a82