diff options
author | Steven A. Falco <sfalco@harris.com> | 2008-06-12 13:22:12 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-01 23:03:14 +0200 |
commit | 75678c807a6272ecc5541eb32898c93887f08400 (patch) | |
tree | 6bfbb1388af69cc3ec8627d305f74a097fdeb24a /include/common.h | |
parent | 4928e97c8531283ca9b368b7c29a8a12e726562a (diff) | |
download | u-boot-imx-75678c807a6272ecc5541eb32898c93887f08400.zip u-boot-imx-75678c807a6272ecc5541eb32898c93887f08400.tar.gz u-boot-imx-75678c807a6272ecc5541eb32898c93887f08400.tar.bz2 |
Make setenv() return status
Currently, the setenv function does not return an error code.
This patch allows to test for errors.
Signed-off-by: Steve Falco <sfalco@harris.com>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h index 3190781..10b997e 100644 --- a/include/common.h +++ b/include/common.h @@ -243,9 +243,9 @@ char *getenv (char *); int getenv_r (char *name, char *buf, unsigned len); int saveenv (void); #ifdef CONFIG_PPC /* ARM version to be fixed! */ -void inline setenv (char *, char *); +int inline setenv (char *, char *); #else -void setenv (char *, char *); +int setenv (char *, char *); #ifdef CONFIG_HAS_UID void forceenv (char *, char *); #endif |