]> git.baikalelectronics.ru Git - uboot.git/commit
env: Use string pointer instead of indexes in env_get_f()
authorMarek Behún <marek.behun@nic.cz>
Sun, 17 Oct 2021 15:36:31 +0000 (17:36 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Oct 2021 18:50:48 +0000 (12:50 -0600)
commit4fc0ff5b301093c4d200aeb463ea6d1ca354ada8
tree169fdff36fe61d52ace92f7c590f626acf2d7dad
parent4f1d8ddf5d8e61fc12b7630f93c3b4d98c71ded5
env: Use string pointer instead of indexes in env_get_f()

Since we no longer use env_get_char() to access n-th character of
linearized environment data, but rather access the arrays themselves, we
can convert the iteration to use string pointers instead of position
indexes.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/nvedit.c