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>
This commit is contained in:
Steven A. Falco
2008-06-12 13:22:12 -04:00
committed by Wolfgang Denk
parent 4928e97c85
commit 75678c807a
4 changed files with 7 additions and 7 deletions

View File

@@ -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