diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-19 15:19:48 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-19 15:19:48 +0200 |
commit | 29863d38150bc67d676bc8bd390e648207ac75ae (patch) | |
tree | afbc0b399e68eeab45efc00c9a049ebd7d71b2b9 | |
parent | 5f597d0cb269b237985a5fec314c2621480120ad (diff) | |
download | serenity-29863d38150bc67d676bc8bd390e648207ac75ae.zip |
LibC: unsetenv() should take a const char*, not a char*.
-rw-r--r-- | LibC/stdlib.cpp | 2 | ||||
-rw-r--r-- | LibC/stdlib.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/LibC/stdlib.cpp b/LibC/stdlib.cpp index ccd8c3c1fd..d83a25a4a9 100644 --- a/LibC/stdlib.cpp +++ b/LibC/stdlib.cpp @@ -62,7 +62,7 @@ char* getenv(const char* name) return nullptr; } -int unsetenv(char* name) +int unsetenv(const char* name) { auto new_var_len = strlen(name); size_t environ_size = 0; diff --git a/LibC/stdlib.h b/LibC/stdlib.h index 0bfdf0663a..25e9a585dd 100644 --- a/LibC/stdlib.h +++ b/LibC/stdlib.h @@ -16,7 +16,7 @@ void free(void*); void* realloc(void *ptr, size_t); char* getenv(const char* name); int putenv(char*); -int unsetenv(char*); +int unsetenv(const char*); int atoi(const char*); long atol(const char*); long long atoll(const char*); |