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 "subid.h"
|
||||||
#include "shadowlog.h"
|
#include "shadowlog.h"
|
||||||
|
|
||||||
static const char *Prog = "(libsubid)";
|
|
||||||
|
|
||||||
bool subid_init(const char *progname, FILE * logfd)
|
bool subid_init(const char *progname, FILE * logfd)
|
||||||
{
|
{
|
||||||
FILE *shadow_logfd;
|
FILE *shadow_logfd;
|
||||||
if (progname) {
|
if (progname) {
|
||||||
progname = strdup(progname);
|
progname = strdup(progname);
|
||||||
if (progname)
|
if (!progname)
|
||||||
Prog = progname;
|
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
|
log_set_progname(progname);
|
||||||
|
} else {
|
||||||
|
log_set_progname("(libsubid)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logfd) {
|
if (logfd) {
|
||||||
|
Loading…
Reference in New Issue
Block a user