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/src/lib/libbsp/shared/bsplibc.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/src/lib/libbsp/shared/bsplibc.c')
-rw-r--r-- | c/src/lib/libbsp/shared/bsplibc.c | 4 |
1 files changed, 1 insertions, 3 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. |