Skip to content

Commit 0181606

Browse files
committed
unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open().
1 parent a60b026 commit 0181606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unix/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ STATIC mp_uint_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in
105105

106106
STATIC mp_uint_t fdfile_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) {
107107
mp_obj_fdfile_t *o = MP_OBJ_TO_PTR(o_in);
108-
check_fd_is_open(o_in);
108+
check_fd_is_open(o);
109109
switch (request) {
110110
case MP_STREAM_SEEK: {
111111
struct mp_stream_seek_t *s = (struct mp_stream_seek_t*)arg;

0 commit comments

Comments
 (0)