1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

Kernel: Make a bunch of "char const* to_string()" return StringView

This commit is contained in:
Andreas Kling 2021-08-05 20:41:44 +02:00
parent f35108fc31
commit af46f2214c
4 changed files with 34 additions and 33 deletions

View file

@ -80,7 +80,7 @@ int main(int argc, char** argv)
if (arg[0] > Syscall::Function::__Count) {
for (int sc = 0; sc < Syscall::Function::__Count; ++sc) {
if (strcmp(Syscall::to_string((Syscall::Function)sc), (char*)arg[0]) == 0) {
if (Syscall::to_string((Syscall::Function)sc) == (char const*)arg[0]) {
arg[0] = sc;
break;
}