]> git.dujemihanovic.xyz Git - u-boot.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)
commiteff73b2eed28389805e8dda6632f6c5f29b3e9b6
tree169fdff36fe61d52ace92f7c590f626acf2d7dad
parent52f9ed34cb3768663ee9c2e5d980143e8ac783a9
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