summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libdl/rtl-error.c')
-rw-r--r--cpukit/libdl/rtl-error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libdl/rtl-error.c b/cpukit/libdl/rtl-error.c
index 5638b88705..7b72c0a26d 100644
--- a/cpukit/libdl/rtl-error.c
+++ b/cpukit/libdl/rtl-error.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
+ * COPYRIGHT (c) 2012-2018 Chris Johns <chrisj@rtems.org>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -28,8 +28,8 @@
void
rtems_rtl_set_error (int error, const char* format, ...)
{
- rtems_rtl_data_t* rtl = rtems_rtl_lock ();
- va_list ap;
+ rtems_rtl_data* rtl = rtems_rtl_lock ();
+ va_list ap;
va_start (ap, format);
rtl->last_errno = error;
vsnprintf (rtl->last_error, sizeof (rtl->last_error), format, ap);
@@ -40,7 +40,7 @@ rtems_rtl_set_error (int error, const char* format, ...)
int
rtems_rtl_get_error (char* message, size_t max_message)
{
- rtems_rtl_data_t* rtl = rtems_rtl_lock ();
+ rtems_rtl_data* rtl = rtems_rtl_lock ();
if (rtl != NULL)
{
int last_errno = rtl->last_errno;