[PATCH 03/10] make file_*_action static

Sascha Hauer s.hauer at pengutronix.de
Sun Jan 20 10:35:12 EST 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/environment.c  |    4 ++--
 include/environment.h |    4 ----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/common/environment.c b/common/environment.c
index 9595986..eebccce 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -50,7 +50,7 @@ struct action_data {
 
 char *default_environment_path = "/dev/env0";
 
-int file_size_action(const char *filename, struct stat *statbuf,
+static int file_size_action(const char *filename, struct stat *statbuf,
 			    void *userdata, int depth)
 {
 	struct action_data *data = userdata;
@@ -75,7 +75,7 @@ int file_size_action(const char *filename, struct stat *statbuf,
 	return 1;
 }
 
-int file_save_action(const char *filename, struct stat *statbuf,
+static int file_save_action(const char *filename, struct stat *statbuf,
 			    void *userdata, int depth)
 {
 	struct action_data *data = userdata;
diff --git a/include/environment.h b/include/environment.h
index 120040e..65f254b 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -77,10 +77,6 @@ extern char *default_environment_path;
 
 int export(const char *);
 
-struct stat;
-int file_size_action(const char *, struct stat *, void *, int);
-int file_save_action(const char *, struct stat *, void *, int);
-
 #endif /* __BAREBOX__ */
 
 #define ENV_FLAG_NO_OVERWRITE	(1 << 0)
-- 
1.7.10.4




More information about the barebox mailing list