mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 01:32:47 +02:00
env: Adjust the get_char() method to return an int
In principle this can fail, e.g. if the index is out of range. Adjust the driver signature to allow returning an error code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -227,9 +227,9 @@ struct env_driver {
|
||||
* will read from gd->env_addr.
|
||||
*
|
||||
* @index: Index of character to read (0=first)
|
||||
* @return character read
|
||||
* @return character read, or -ve on error
|
||||
*/
|
||||
unsigned char (*get_char)(int index);
|
||||
int (*get_char)(int index);
|
||||
|
||||
/**
|
||||
* load() - Load the environment from storage
|
||||
|
Reference in New Issue
Block a user