Explorar o código

style: add type conversion for getcwd

greatbridf %!s(int64=2) %!d(string=hai) anos
pai
achega
36654c55e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }