Skip to content

Commit

Permalink
libsubid/api.c: make shadow_logfd not extern
Browse files Browse the repository at this point in the history
Closes #346

Also #include stdio.h

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Jun 1, 2021
1 parent 0871122 commit 1d767fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libsubid/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "subid.h"

const char *Prog = "(libsubid)";
extern FILE * shadow_logfd;
FILE *shadow_logfd;

bool libsubid_init(const char *progname, FILE * logfd)
{
Expand Down
1 change: 1 addition & 0 deletions libsubid/subid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdbool.h>

#ifndef SUBID_RANGE_DEFINED
Expand Down

0 comments on commit 1d767fb

Please sign in to comment.