mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
Terminal: Fix compiler warnings.
This commit is contained in:
parent
1277d583ef
commit
4118aaaa32
Notes:
sideshowbarker
2024-07-19 13:31:12 +09:00
Author: https://github.com/awesomekling
Commit: 4118aaaa32
2 changed files with 4 additions and 4 deletions
|
@ -70,9 +70,9 @@ static void make_shell(int ptm_fd)
|
|||
perror("ioctl(TIOCSCTTY)");
|
||||
exit(1);
|
||||
}
|
||||
char* args[] = { "/bin/Shell", nullptr };
|
||||
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
|
||||
rc = execve("/bin/Shell", args, envs);
|
||||
const char* args[] = { "/bin/Shell", nullptr };
|
||||
const char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
|
||||
rc = execve("/bin/Shell", const_cast<char**>(args), const_cast<char**>(envs));
|
||||
if (rc < 0) {
|
||||
perror("execve");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue