[PATCH 05/18] libio: Avoid direct use of rtems_libio_iops
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Sep 13 13:39:38 UTC 2017
Update #3132.
---
cpukit/libmisc/serdbg/serdbgio.c | 2 +-
cpukit/libmisc/serdbg/termios_printk.c | 2 +-
cpukit/libnetworking/rtems/rtems_syscall.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/libmisc/serdbg/serdbgio.c b/cpukit/libmisc/serdbg/serdbgio.c
index 9175457dab..5de2005472 100644
--- a/cpukit/libmisc/serdbg/serdbgio.c
+++ b/cpukit/libmisc/serdbg/serdbgio.c
@@ -137,7 +137,7 @@ int serdbg_open
* capture tty structure
*/
if (!err_occurred) {
- iop = &rtems_libio_iops[serdbg_fd];
+ iop = rtems_libio_iop(serdbg_fd);
serdbg_tty = iop->data1;
}
/*
diff --git a/cpukit/libmisc/serdbg/termios_printk.c b/cpukit/libmisc/serdbg/termios_printk.c
index 920d1fa3b9..3da216f6e9 100644
--- a/cpukit/libmisc/serdbg/termios_printk.c
+++ b/cpukit/libmisc/serdbg/termios_printk.c
@@ -200,7 +200,7 @@ int termios_printk_open
* capture tty structure
*/
if (!err_occurred) {
- iop = &rtems_libio_iops[termios_printk_fd];
+ iop = rtems_libio_iop(termios_printk_fd);
termios_printk_tty = iop->data1;
}
/*
diff --git a/cpukit/libnetworking/rtems/rtems_syscall.c b/cpukit/libnetworking/rtems/rtems_syscall.c
index bf59cd8275..9d9b64c423 100644
--- a/cpukit/libnetworking/rtems/rtems_syscall.c
+++ b/cpukit/libnetworking/rtems/rtems_syscall.c
@@ -49,7 +49,7 @@ rtems_bsdnet_fdToSocket (int fd)
errno = EBADF;
return NULL;
}
- iop = &rtems_libio_iops[fd];
+ iop = rtems_libio_iop(fd);
/* same as rtems_libio_check_is_open(iop) but different return */
if ((iop->flags & LIBIO_FLAGS_OPEN) == 0) {
--
2.12.3
More information about the devel
mailing list