commit c4425a94f38d291daaab5659cacdf2ac806be710
parent 089e7543ed6d517804586f0404bab870949eb549
Author: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue, 20 Aug 2019 20:12:07 +0200
add forward declarations for functions from hier.c
Diffstat:
6 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -716,7 +716,7 @@ compile hfield.c hfield.h
./compile hfield.c
hier.o: \
-compile hier.c auto_qmail.h auto_split.h auto_uids.h fmt.h fifo.h
+compile hier.c auto_qmail.h auto_split.h auto_uids.h fmt.h fifo.h hier.h
./compile hier.c
home: \
@@ -756,7 +756,7 @@ auto_users.o auto_groupq.o strerr.a substdio.a error.a str.a fs.a
str.a fs.a
instcheck.o: \
-compile instcheck.c strerr.h error.h readwrite.h exit.h
+compile instcheck.c strerr.h error.h readwrite.h exit.h hier.h
./compile instcheck.c
instchown: \
@@ -768,7 +768,7 @@ auto_groupq.o strerr.a substdio.a error.a str.a fs.a
auto_users.o auto_groupq.o strerr.a substdio.a error.a str.a fs.a
instchown.o: \
-compile instchown.c strerr.h error.h exit.h
+compile instchown.c strerr.h error.h exit.h hier.h
./compile instchown.c
instpackage: \
@@ -779,7 +779,7 @@ substdio.a open.a error.a env.a str.a fs.a stralloc.a alloc.a
instpackage.o: \
compile instpackage.c substdio.h strerr.h env.h error.h fifo.h open.h \
-readwrite.h exit.h alloc.h str.h stralloc.h
+readwrite.h exit.h alloc.h str.h stralloc.h hier.h
./compile instpackage.c
instuidgid.o: \
diff --git a/hier.c b/hier.c
@@ -3,6 +3,7 @@
#include "auto_uids.h"
#include "fmt.h"
#include "fifo.h"
+#include "hier.h"
char buf[100 + FMT_ULONG];
diff --git a/hier.h b/hier.h
@@ -0,0 +1,10 @@
+#ifndef HIER_H
+#define HIER_H
+
+extern void h();
+extern void d();
+extern void p();
+extern void c();
+extern void z();
+
+#endif
diff --git a/instcheck.c b/instcheck.c
@@ -4,6 +4,7 @@
#include "error.h"
#include "readwrite.h"
#include "exit.h"
+#include "hier.h"
extern void init_uidgid();
extern void hier();
diff --git a/instchown.c b/instchown.c
@@ -1,6 +1,7 @@
#include "strerr.h"
#include "error.h"
#include "exit.h"
+#include "hier.h"
extern void init_uidgid();
extern void hier();
diff --git a/instpackage.c b/instpackage.c
@@ -3,6 +3,7 @@
#include "env.h"
#include "error.h"
#include "fifo.h"
+#include "hier.h"
#include "open.h"
#include "readwrite.h"
#include "exit.h"