diff options
author | Andreas Fenkart | 2015-12-09 13:13:21 +0100 |
---|---|---|
committer | Tom Rini | 2016-02-08 10:10:29 -0500 |
commit | 167f52587173ad87aac7780058d59aa96422eed0 (patch) | |
tree | d39de91480d87b075fec417430042ffff6be2823 /include/env_flags.h | |
parent | 57dc53a72460e8e301fa1cc7951b41db8e731485 (diff) |
tools: env validate: pass values as 0-based array
passing argv/argc can produce off-by-one errors
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Diffstat (limited to 'include/env_flags.h')
-rw-r--r-- | include/env_flags.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/env_flags.h b/include/env_flags.h index 8823fb9602e..9e87e1b7dbf 100644 --- a/include/env_flags.h +++ b/include/env_flags.h @@ -143,7 +143,7 @@ int env_flags_validate_varaccess(const char *name, int check_mask); /* * Validate the parameters passed to "env set" for type compliance */ -int env_flags_validate_env_set_params(int argc, char * const argv[]); +int env_flags_validate_env_set_params(char *name, char *const val[], int count); #else /* !USE_HOSTCC */ |