diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:10 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:23:32 -0400 |
commit | 018f530323b2cc41be05be5b12375d3648f06554 (patch) | |
tree | b397b84a059e5b704c20c9097577ada6fc4ba296 /cmd/tpm.c | |
parent | 382bee57f19b4454e2015bc19a010bc2d0ab9337 (diff) |
env: Rename common functions related to setenv()
We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
common.h.
Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/tpm.c')
-rw-r--r-- | cmd/tpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -231,7 +231,7 @@ static int type_string_write_vars(const char *type_str, uint8_t *data, default: return -1; } - if (setenv_ulong(*vars, value)) + if (env_set_ulong(*vars, value)) return -1; } @@ -624,7 +624,7 @@ static int do_tpm_load_key_by_sha1(cmd_tbl_t *cmdtp, int flag, int argc, char * &key_handle); if (!err) { printf("Key handle is 0x%x\n", key_handle); - setenv_hex("key_handle", key_handle); + env_set_hex("key_handle", key_handle); } return report_return_code(err); |