Skip to content

Commit 72c81e1

Browse files
committed
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 <[email protected]>
1 parent 7225fbc commit 72c81e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*
4545
* In addition to it's value, each list item contains a pointer to the next
4646
* item in the list (pxNext), a pointer to the list it is in (pxContainer)
47-
* and a pointer to back to the object that contains it. These later two
47+
* and a pointer back to the object that contains it. These later two
4848
* pointers are included for efficiency of list manipulation. There is
4949
* effectively a two way link between the object containing the list item and
5050
* the list item itself.

portable/MemMang/heap_1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ void * pvPortMalloc( size_t xWantedSize )
8484
/* Ensure that blocks are always aligned. */
8585
#if ( portBYTE_ALIGNMENT != 1 )
8686
{
87-
size_t xAdditionalRequiredSize;
88-
8987
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
9088
{
89+
size_t xAdditionalRequiredSize;
90+
9191
/* Byte alignment required. */
9292
xAdditionalRequiredSize = portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK );
9393

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void prvFatalError( const char * pcCall,
193193
}
194194
/*-----------------------------------------------------------*/
195195

196-
static void prvPortSetCurrentThreadName( char * pxThreadName )
196+
static void prvPortSetCurrentThreadName( const char * pxThreadName )
197197
{
198198
#ifdef __APPLE__
199199
pthread_setname_np( pxThreadName );

0 commit comments

Comments
 (0)