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/exports.h | |
parent | 4928e97c8531283ca9b368b7c29a8a12e726562a (diff) |
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/exports.h')
-rw-r--r-- | include/exports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exports.h b/include/exports.h index d6512cb3a45..6377875bc9a 100644 --- a/include/exports.h +++ b/include/exports.h @@ -22,7 +22,7 @@ void vprintf(const char *, va_list); void do_reset (void); unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base); char *getenv (char *name); -void setenv (char *varname, char *varvalue); +int setenv (char *varname, char *varvalue); long simple_strtol(const char *cp,char **endp,unsigned int base); int strcmp(const char * cs,const char * ct); #ifdef CONFIG_HAS_UID |