Преглед изворни кода

style: add type conversion for getcwd

greatbridf пре 2 година
родитељ
комит
36654c55e7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gblibc/src/unistd.c

+ 1 - 1
gblibc/src/unistd.c

@@ -40,5 +40,5 @@ int chdir(const char* path)
 
 char* getcwd(char* buf, size_t bufsize)
 {
-    return syscall2(SYS_getcwd, (uint32_t)buf, bufsize);
+    return (char*)syscall2(SYS_getcwd, (uint32_t)buf, bufsize);
 }