From 723806cc5bea9f8b37323dfd7568603f99af6a06 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:15 -0600 Subject: env: Rename some other getenv()-related functions We are now using an env_ prefix for environment functions. Rename these other functions as well, for consistency: getenv_vlan() getenv_bootm_size() getenv_bootm_low() getenv_bootm_mapsize() env_get_default() Suggested-by: Wolfgang Denk Signed-off-by: Simon Glass --- include/common.h | 2 +- include/environment.h | 2 +- include/image.h | 6 +++--- include/net.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index eb44c9ef423..aaed1316712 100644 --- a/include/common.h +++ b/include/common.h @@ -749,7 +749,7 @@ int zzip(void *dst, unsigned long *lenp, unsigned char *src, /* lib/net_utils.c */ #include -static inline struct in_addr getenv_ip(char *var) +static inline struct in_addr env_get_ip(char *var) { return string_to_ip(env_get(var)); } diff --git a/include/environment.h b/include/environment.h index a055e3fa890..9a442152355 100644 --- a/include/environment.h +++ b/include/environment.h @@ -282,7 +282,7 @@ extern struct hsearch_data env_htab; void env_crc_update(void); /* Look up the variable from the default environment */ -char *getenv_default(const char *name); +char *env_get_default(const char *name); /* [re]set to the default environment */ void set_default_env(const char *s); diff --git a/include/image.h b/include/image.h index c4fe4cfb8b1..1f4bfda2f3f 100644 --- a/include/image.h +++ b/include/image.h @@ -769,9 +769,9 @@ static inline void image_set_name(image_header_t *hdr, const char *name) int image_check_hcrc(const image_header_t *hdr); int image_check_dcrc(const image_header_t *hdr); #ifndef USE_HOSTCC -ulong getenv_bootm_low(void); -phys_size_t getenv_bootm_size(void); -phys_size_t getenv_bootm_mapsize(void); +ulong env_get_bootm_low(void); +phys_size_t env_get_bootm_size(void); +phys_size_t env_get_bootm_mapsize(void); #endif void memmove_wd(void *to, void *from, size_t len, ulong chunksz); diff --git a/include/net.h b/include/net.h index a6f90826531..455b48f6c72 100644 --- a/include/net.h +++ b/include/net.h @@ -834,7 +834,7 @@ void vlan_to_string(ushort x, char *s); ushort string_to_vlan(const char *s); /* read a VLAN id from an environment variable */ -ushort getenv_vlan(char *); +ushort env_get_vlan(char *); /* copy a filename (allow for "..." notation, limit length) */ void copy_filename(char *dst, const char *src, int size); -- cgit v1.2.3