summaryrefslogtreecommitdiffstats
path: root/common/environment.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/environment.c')
-rw-r--r--common/environment.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/common/environment.c b/common/environment.c
index e11cd9dd47..eebccce100 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -41,9 +41,16 @@
#define EXPORT_SYMBOL(x)
#endif
+struct action_data {
+ int fd;
+ const char *base;
+ void *writep;
+};
+#define PAD4(x) ((x + 3) & ~3)
+
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;
@@ -68,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;