소스 검색

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);
 }