mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
env: Rename setenv() to env_set()
We are now using an env_ prefix for environment functions. Rename setenv() for consistency. Also add function comments in common.h. Suggested-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@ -38,7 +38,7 @@ static int do_part_uuid(int argc, char * const argv[])
|
||||
return 1;
|
||||
|
||||
if (argc > 2)
|
||||
setenv(argv[2], info.uuid);
|
||||
env_set(argv[2], info.uuid);
|
||||
else
|
||||
printf("%s\n", info.uuid);
|
||||
|
||||
@ -99,7 +99,7 @@ static int do_part_list(int argc, char * const argv[])
|
||||
sprintf(t, "%s%x", str[0] ? " " : "", p);
|
||||
strcat(str, t);
|
||||
}
|
||||
setenv(var, str);
|
||||
env_set(var, str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ static int do_part_start(int argc, char * const argv[])
|
||||
snprintf(buf, sizeof(buf), LBAF, info.start);
|
||||
|
||||
if (argc > 3)
|
||||
setenv(argv[3], buf);
|
||||
env_set(argv[3], buf);
|
||||
else
|
||||
printf("%s\n", buf);
|
||||
|
||||
@ -169,7 +169,7 @@ static int do_part_size(int argc, char * const argv[])
|
||||
snprintf(buf, sizeof(buf), LBAF, info.size);
|
||||
|
||||
if (argc > 3)
|
||||
setenv(argv[3], buf);
|
||||
env_set(argv[3], buf);
|
||||
else
|
||||
printf("%s\n", buf);
|
||||
|
||||
|
Reference in New Issue
Block a user