libsubid: use log_set_progname in subid_init

The static Prog variable here is no longer used, so remove it.
This commit is contained in:
Adam Sampson 2021-12-26 18:16:10 +00:00
parent e1b1d187f4
commit 9750fd6819

View File

@ -40,17 +40,16 @@
#include "subid.h"
#include "shadowlog.h"
static const char *Prog = "(libsubid)";
bool subid_init(const char *progname, FILE * logfd)
{
FILE *shadow_logfd;
if (progname) {
progname = strdup(progname);
if (progname)
Prog = progname;
else
if (!progname)
return false;
log_set_progname(progname);
} else {
log_set_progname("(libsubid)");
}
if (logfd) {