Compare commits

...

1 commit

Author SHA1 Message Date
Florian La Roche
72c81e17ed cleanup
- In list.h fix a typo in comments.
- In heap_1.c define vars at the same level as they are used.
- In portable/ThirdParty/GCC/Posix/port.c fix compiler warning about
  "gcc -Wwrite-strings".

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2025-07-07 21:46:33 +02:00
3 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@
*
* In addition to it's value, each list item contains a pointer to the next
* item in the list (pxNext), a pointer to the list it is in (pxContainer)
* and a pointer to back to the object that contains it. These later two
* and a pointer back to the object that contains it. These later two
* pointers are included for efficiency of list manipulation. There is
* effectively a two way link between the object containing the list item and
* the list item itself.

View file

@ -84,10 +84,10 @@ void * pvPortMalloc( size_t xWantedSize )
/* Ensure that blocks are always aligned. */
#if ( portBYTE_ALIGNMENT != 1 )
{
size_t xAdditionalRequiredSize;
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
{
size_t xAdditionalRequiredSize;
/* Byte alignment required. */
xAdditionalRequiredSize = portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK );

View file

@ -193,7 +193,7 @@ void prvFatalError( const char * pcCall,
}
/*-----------------------------------------------------------*/
static void prvPortSetCurrentThreadName( char * pxThreadName )
static void prvPortSetCurrentThreadName( const char * pxThreadName )
{
#ifdef __APPLE__
pthread_setname_np( pxThreadName );