mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLES
@ 2012-01-11  0:53 Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-01-11  0:53 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 include/environment.h |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/environment.h b/include/environment.h
index 6d38755..7ece7c9 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -47,6 +47,8 @@ char *var_name(struct variable_d *);
 #ifdef CONFIG_ENVIRONMENT_VARIABLES
 const char *getenv(const char *);
 int setenv(const char *, const char *);
+void export_env_ull(const char *name, unsigned long long val);
+unsigned long long getenv_ull(const char *name);
 #else
 static inline char *getenv(const char *var)
 {
@@ -57,11 +59,13 @@ static inline int setenv(const char *var, const char *val)
 {
 	return 0;
 }
+static inline void export_env_ull(const char *name, unsigned long long val) {}
+static inline unsigned long long getenv_ull(const char *name)
+{
+	return 0;
+}
 #endif
 
-void export_env_ull(const char *name, unsigned long long val);
-unsigned long long getenv_ull(const char *name);
-
 int env_pop_context(void);
 int env_push_context(void);
 
-- 
1.7.7


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-11  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11  0:53 [PATCH 1/1] environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLES Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox