libsubid/api.c: make shadow_logfd not extern

Closes #346

Also #include stdio.h

Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
Serge Hallyn 2021-05-28 22:02:16 -05:00
parent 0871122443
commit 1d767fb779
2 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@
#include "subid.h" #include "subid.h"
const char *Prog = "(libsubid)"; const char *Prog = "(libsubid)";
extern FILE * shadow_logfd; FILE *shadow_logfd;
bool libsubid_init(const char *progname, FILE * logfd) bool libsubid_init(const char *progname, FILE * logfd)
{ {

View File

@ -1,4 +1,5 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#ifndef SUBID_RANGE_DEFINED #ifndef SUBID_RANGE_DEFINED