]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
libsubid/api.c: make shadow_logfd not extern 348/head
authorSerge Hallyn <serge@hallyn.com>
Sat, 29 May 2021 03:02:16 +0000 (22:02 -0500)
committerSerge Hallyn <serge@hallyn.com>
Tue, 1 Jun 2021 15:11:46 +0000 (10:11 -0500)
Closes #346

Also #include stdio.h

Signed-off-by: Serge Hallyn <serge@hallyn.com>
libsubid/api.c
libsubid/subid.h

index b477b27164adf836f27128738110aba633d76f8e..a7b904d0617fb436576958827ca06fb8d2d1b5bc 100644 (file)
@@ -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)
 {
index 5fef2572db500ad56b71e830d4b054533a7ebac5..eabafe4df2107f0661a5f19abc657b0efac62def 100644 (file)
@@ -1,4 +1,5 @@
 #include <sys/types.h>
+#include <stdio.h>
 #include <stdbool.h>
 
 #ifndef SUBID_RANGE_DEFINED