fix(c/libuv): Fix async_fs demo return 255 error & pointer not allocated error
Signed-off-by: hackerchai <i@hackerchai.com> fix(c/libuv): Mv LLGoFiles declaration Signed-off-by: hackerchai <i@hackerchai.com> fix(c/libuv/demo): Fix return 255 error & pointer not allocated error Signed-off-by: hackerchai <i@hackerchai.com> refactor(c/libuv): Rewrite FsNew() logic Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <uv.h>
|
||||
|
||||
uv_fs_t uv_fs_new() {
|
||||
uv_fs_t req;
|
||||
return req;
|
||||
uv_fs_t* uv_fs_new() {
|
||||
uv_fs_t* req = malloc(sizeof(uv_fs_t));
|
||||
return req;
|
||||
}
|
||||
Reference in New Issue
Block a user