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:
parent
e1b1d187f4
commit
9750fd6819
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user