summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-20 13:12:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-20 16:30:22 +0100
commit00df6b46373020348d27d6cc83f2b13e7a940935 (patch)
treead270d8c6ee456bc7c0429c6089beb3ab59c412a
parent5531abd16dc061cd3272884ada424b33d583f155 (diff)
downloadbarebox-00df6b46373020348d27d6cc83f2b13e7a940935.tar.gz
barebox-00df6b46373020348d27d6cc83f2b13e7a940935.tar.xz
make file_*_action static
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/environment.c4
-rw-r--r--include/environment.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/common/environment.c b/common/environment.c
index 9595986bea..eebccce100 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 120040e0ec..65f254bda2 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)