diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-04-24 14:30:42 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-04-26 10:57:08 +0200 |
commit | a290fbe946944385480cff7b388a6cd8b9d27d38 (patch) | |
tree | 0304af8b9649aa9b8073b13027d1f81ed07bfbff /c | |
parent | libcsupport: Remove superfluous assignments (diff) | |
download | rtems-a290fbe946944385480cff7b388a6cd8b9d27d38.tar.bz2 |
libcsupport: Make LibIO helper const
Add and use rtems_libio_helper function type. Add and use
rtems_libio_helper_null() instead of NULL pointer.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/shared/bsplibc.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/bsppost.c | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/shared/bsplibc.c b/c/src/lib/libbsp/shared/bsplibc.c index 181dcff303..58fcf65210 100644 --- a/c/src/lib/libbsp/shared/bsplibc.c +++ b/c/src/lib/libbsp/shared/bsplibc.c @@ -3,7 +3,6 @@ * On-Line Applications Research Corporation (OAR). */ -#include <rtems.h> #include <rtems/libio.h> #include <rtems/libcsupport.h> @@ -16,8 +15,7 @@ void bsp_libc_init(void) * calls for use by newlib (ie: provide open, close, etc) * Uses malloc() to get area for the iops, so must be after malloc init */ - if (rtems_libio_init_helper) - (*rtems_libio_init_helper)(); + (*rtems_libio_init_helper)(); /* * Set up for the libc handling. diff --git a/c/src/lib/libbsp/shared/bsppost.c b/c/src/lib/libbsp/shared/bsppost.c index ec5e57ddf3..351e4d789c 100644 --- a/c/src/lib/libbsp/shared/bsppost.c +++ b/c/src/lib/libbsp/shared/bsppost.c @@ -12,16 +12,11 @@ * http://www.rtems.com/license/LICENSE. */ -#include <fcntl.h> - -#include <rtems.h> #include <rtems/libio.h> -#include <rtems/libcsupport.h> #include <bsp/bootcard.h> void bsp_postdriver_hook(void) { - if (rtems_libio_supp_helper) - (*rtems_libio_supp_helper)(); + (*rtems_libio_supp_helper)(); } |