mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Move env_set_ulong() to env.h
Move env_set_ulong() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
c7694dd483
commit
168068fb3d
16 changed files with 23 additions and 9 deletions
|
@ -63,6 +63,15 @@ int env_match(unsigned char *name, int index);
|
|||
*/
|
||||
int env_get_f(const char *name, char *buf, unsigned int len);
|
||||
|
||||
/**
|
||||
* env_set_ulong() - set an environment variable to an integer
|
||||
*
|
||||
* @varname: Variable to adjust
|
||||
* @value: Value to set for the variable (will be converted to a string)
|
||||
* @return 0 if OK, 1 on error
|
||||
*/
|
||||
int env_set_ulong(const char *varname, ulong value);
|
||||
|
||||
/**
|
||||
* env_set_hex() - set an environment variable to a hex value
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue