diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-27 02:50:11 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-27 02:50:11 +0300 |
commit | 01816068c8254c3440e8e6afac250ae00e332b91 (patch) | |
tree | 1a89ade792867fe265c495e076ca4f714d1ff239 /unix | |
parent | a60b0263ba97f655c01f0982df74299c14457b1c (diff) | |
download | micropython-01816068c8254c3440e8e6afac250ae00e332b91.tar.gz micropython-01816068c8254c3440e8e6afac250ae00e332b91.zip |
unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open().
Diffstat (limited to 'unix')
-rw-r--r-- | unix/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/file.c b/unix/file.c index 2c8652d7fb..824327265e 100644 --- a/unix/file.c +++ b/unix/file.c @@ -105,7 +105,7 @@ STATIC mp_uint_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in STATIC mp_uint_t fdfile_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { mp_obj_fdfile_t *o = MP_OBJ_TO_PTR(o_in); - check_fd_is_open(o_in); + check_fd_is_open(o); switch (request) { case MP_STREAM_SEEK: { struct mp_stream_seek_t *s = (struct mp_stream_seek_t*)arg; |