From: Tobias Stoeckmann Date: Sun, 11 Jan 2026 11:28:02 +0000 (+0100) Subject: libsubid: Avoid shadow_logfd as variable name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828f465cd22dc2bc0c185b5f38bdcc3837615717;p=thirdparty%2Fshadow.git libsubid: Avoid shadow_logfd as variable name A global shadow_logfd variable exists, so this effectively shadows it. Signed-off-by: Tobias Stoeckmann --- diff --git a/libsubid/api.c b/libsubid/api.c index 0bc4364e5..6b0d78fda 100644 --- a/libsubid/api.c +++ b/libsubid/api.c @@ -21,7 +21,7 @@ bool subid_init(const char *progname, FILE * logfd) { - FILE *shadow_logfd; + FILE *fp; if (progname) { progname = strdup(progname); if (!progname) @@ -35,12 +35,12 @@ bool subid_init(const char *progname, FILE * logfd) log_set_logfd(logfd); return true; } - shadow_logfd = fopen("/dev/null", "w"); - if (!shadow_logfd) { + fp = fopen("/dev/null", "w"); + if (!fp) { log_set_logfd(stderr); return false; } - log_set_logfd(shadow_logfd); + log_set_logfd(fp); return true; }