diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 13:10:01 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 16:30:22 +0100 |
commit | 5531abd16dc061cd3272884ada424b33d583f155 (patch) | |
tree | 2e91636ed50b15d3a2d952a5e5bcb84d682be497 | |
parent | 7b4d66ab28fdd3c7bfd4e427a1f7ccddbffd355c (diff) | |
download | barebox-5531abd16dc061cd3272884ada424b33d583f155.tar.gz barebox-5531abd16dc061cd3272884ada424b33d583f155.tar.xz |
move struct action_data to the only file using it
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/environment.c | 7 | ||||
-rw-r--r-- | include/environment.h | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/common/environment.c b/common/environment.c index e11cd9dd47..9595986bea 100644 --- a/common/environment.c +++ b/common/environment.c @@ -41,6 +41,13 @@ #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, diff --git a/include/environment.h b/include/environment.h index 096c1697c4..120040e0ec 100644 --- a/include/environment.h +++ b/include/environment.h @@ -87,14 +87,6 @@ int file_save_action(const char *, struct stat *, void *, int); int envfs_load(char *filename, char *dirname, unsigned flags); int envfs_save(char *filename, char *dirname); -/* This part is used for the host and the target */ -struct action_data { - int fd; - const char *base; - void *writep; -}; -#define PAD4(x) ((x + 3) & ~3) - #endif /* _ENVIRONMENT_H_ */ /** |