Skip to content

Commit 637516b

Browse files
committed
Fixed reference to file descriptor and cleaned up dead/commented code.
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
1 parent 1e3faec commit 637516b

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

  • core

core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ wasmtime_ssp_poll_oneoff(wasm_exec_env_t exec_env, struct fd_table *curfds,
22132213

22142214
// Temporary workaround (see PR#4377)
22152215
#ifdef BH_PLATFORM_ZEPHYR
2216-
os_file_handle tfd = fos[i]->file_handle->fds;
2216+
os_file_handle tfd = fos[i]->file_handle->fd;
22172217
#else
22182218
os_file_handle tfd = fos[i]->file_handle;
22192219
#endif

core/shared/platform/zephyr/zephyr_file.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ zephyr_fs_alloc_obj(bool is_dir, const char *path, int *index)
138138
printk("Error: all file descriptor slots are in use (max = %d)\n",
139139
CONFIG_WASI_MAX_OPEN_FILES);
140140
}
141-
// else {
142-
// printk("Allocated fd %d for path \"%s\" (dir = %s)\n", *index,
143-
// ptr->path,
144-
// is_dir ? "true" : "false");
145-
// }
146141

147142
return ptr;
148143
}

0 commit comments

Comments
 (0)