diff options
Diffstat (limited to 'cpukit/libcsupport/src/fchmod.c')
-rw-r--r-- | cpukit/libcsupport/src/fchmod.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c index 1a9122c9bb..126b015501 100644 --- a/cpukit/libcsupport/src/fchmod.c +++ b/cpukit/libcsupport/src/fchmod.c @@ -67,9 +67,7 @@ int fchmod( int fd, mode_t mode ) int rv; rtems_libio_t *iop; - rtems_libio_check_fd( fd ); - iop = rtems_libio_iop( fd ); - rtems_libio_check_is_open(iop); + LIBIO_GET_IOP( fd, iop ); rtems_filesystem_instance_lock( &iop->pathinfo ); |