]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/StreamBufferDemo.c
Complete testing of changes that allow xQueueOverwrite() to be used on a queue that...
[freertos] / FreeRTOS / Demo / Common / Minimal / StreamBufferDemo.c
index 0c812ac8afa618bee57e312885a778984cdb85cf..a0cdda6c4e4b00c3e4a2d7381f7c3f766eab098a 100644 (file)
@@ -600,7 +600,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
                        xBytesToSend = xStringLength - xNextChar;\r
 \r
                        /* Attempt to send right up to the end of the string. */\r
-                       xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );\r
+                       xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( const void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );\r
                        configASSERT( xBytesActuallySent <= xBytesToSend );\r
 \r
                        /* Move the index up the string to the next character to be sent,\r
@@ -661,7 +661,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
                        } while( xReceivedLength == 0 );\r
 \r
                        /* Ensure the received string matches the expected string. */\r
-                       configASSERT( memcmp( ( void * ) cRxString, ( void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );\r
+                       configASSERT( memcmp( ( void * ) cRxString, ( const void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );\r
 \r
                        /* Move the index into the string up to the end of the bytes\r
                        received so far - wrapping if the end of the string has been\r