summaryrefslogtreecommitdiffstats
path: root/bsp-howto
diff options
context:
space:
mode:
authorMartin Erik Werner <martinerikwerner@gmail.com>2017-11-16 02:04:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-16 09:54:25 +0100
commitc6066d4532c75c01245f0ccb5acb41de434894a4 (patch)
tree26f2e570a47fd2ae6a6b3924c3f4149a83188498 /bsp-howto
parent33849946ff6022c26722ec71248fd76aa55de4ef (diff)
downloadrtems-docs-c6066d4532c75c01245f0ccb5acb41de434894a4.tar.bz2
bsp-howto/console: Move misplaced var. in example
Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com>
Diffstat (limited to 'bsp-howto')
-rw-r--r--bsp-howto/console.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp-howto/console.rst b/bsp-howto/console.rst
index 2bdb3c8..0453b37 100644
--- a/bsp-howto/console.rst
+++ b/bsp-howto/console.rst
@@ -184,6 +184,7 @@ characters from ``buf`` to the serial device specified by ``base``.
)
{
my_driver_context *ctx;
+ size_t i;
ctx = (my_driver_context *) base;
@@ -201,7 +202,6 @@ available, then the routine should immediately return minus one.
static int my_driver_poll_read( rtems_termios_device_context *base )
{
my_driver_context *ctx;
- size_t i;
ctx = (my_driver_context *) base;