mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibC: unsetenv() should take a const char*, not a char*.
This commit is contained in:
parent
5f597d0cb2
commit
29863d3815
Notes:
sideshowbarker
2024-07-19 14:01:09 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/29863d38150
@ -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;
|
||||
|
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user