Conform putenv to POSIX standards

Discovered this while working on VLC, checked with other online sources too.

Change-Id: I114c20babda0ff0e90d0eeee299d8483700166bd
Reviewed-on: https://review.haiku-os.org/c/1628
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
CodeforEvolution
2019-07-20 16:02:00 +00:00
committed by waddlesplash
parent 736adc5a11
commit e1a822a95f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ extern long a64l(const char *string);
extern char **environ;
extern int clearenv(void);
extern char *getenv(const char *name);
extern int putenv(const char *string);
extern int putenv(char *string);
extern int setenv(char const *name, char const *value, int rewrite);
extern int unsetenv(const char *name);
+1 -1
View File
@@ -304,7 +304,7 @@ unsetenv(const char *name)
int
putenv(const char *string)
putenv(char *string)
{
char *value = strchr(string, '=');
status_t status;