[PATCH] bsp-howto/console: Move misplaced var. in example

Martin Erik Werner martinerikwerner at gmail.com
Thu Nov 16 01:04:57 UTC 2017


Signed-off-by: Martin Erik Werner <martinerikwerner at gmail.com>
---
 bsp-howto/console.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsp-howto/console.rst b/bsp-howto/console.rst
index 2bdb3c8..f8ff7ce 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;
 
-- 
2.11.0



More information about the devel mailing list