X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FCommon%2FMinimal%2FStreamBufferDemo.c;h=a0cdda6c4e4b00c3e4a2d7381f7c3f766eab098a;hb=66f8bfece5a732fb150c520f18d32d179b2d6a1a;hp=0c812ac8afa618bee57e312885a778984cdb85cf;hpb=31c382527c2a7cda8175dd5025be4a5cd50fc161;p=freertos diff --git a/FreeRTOS/Demo/Common/Minimal/StreamBufferDemo.c b/FreeRTOS/Demo/Common/Minimal/StreamBufferDemo.c index 0c812ac8a..a0cdda6c4 100644 --- a/FreeRTOS/Demo/Common/Minimal/StreamBufferDemo.c +++ b/FreeRTOS/Demo/Common/Minimal/StreamBufferDemo.c @@ -600,7 +600,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE; xBytesToSend = xStringLength - xNextChar; /* Attempt to send right up to the end of the string. */ - xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait ); + xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( const void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait ); configASSERT( xBytesActuallySent <= xBytesToSend ); /* Move the index up the string to the next character to be sent, @@ -661,7 +661,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE; } while( xReceivedLength == 0 ); /* Ensure the received string matches the expected string. */ - configASSERT( memcmp( ( void * ) cRxString, ( void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 ); + configASSERT( memcmp( ( void * ) cRxString, ( const void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 ); /* Move the index into the string up to the end of the bytes received so far - wrapping if the end of the string has been