summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/devfs/devopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/devfs/devopen.c')
-rw-r--r--cpukit/libfs/src/devfs/devopen.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/libfs/src/devfs/devopen.c b/cpukit/libfs/src/devfs/devopen.c
index 67be3678e1..1b100e1cc7 100644
--- a/cpukit/libfs/src/devfs/devopen.c
+++ b/cpukit/libfs/src/devfs/devopen.c
@@ -18,15 +18,13 @@
int devFS_open(
rtems_libio_t *iop,
const char *pathname,
- uint32_t flag,
- uint32_t mode
+ int oflag,
+ mode_t mode
)
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
- rtems_device_name_t *np;
-
- np = (rtems_device_name_t *)iop->pathinfo.node_access;
+ const devFS_node *np = iop->pathinfo.node_access;
args.iop = iop;
args.flags = iop->flags;