summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibC/stdlib.cpp2
-rw-r--r--LibC/stdlib.h2
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*);