diff options
Diffstat (limited to 'FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c')
-rw-r--r-- | FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c b/FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c index 0f2dce32a..22132b935 100644 --- a/FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c +++ b/FreeRTOS/Test/VeriFast/queue/uxQueueMessagesWaiting.c @@ -1,6 +1,6 @@ /* * FreeRTOS V202112.00 - * Copyright (C) Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in @@ -24,6 +24,8 @@ * */ +/* *INDENT-OFF* */ + #include "proof/queue.h" /* It may seem that the read of `pxQueue->uxMessagesWaiting` is required to be @@ -41,11 +43,11 @@ UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) { UBaseType_t uxReturn; - #ifdef VERIFAST /*< const pointer declaration */ - Queue_t * pxQueue = xQueue; - #else - Queue_t * const pxQueue = xQueue; - #endif +#ifdef VERIFAST /*< const pointer declaration */ + Queue_t * pxQueue = xQueue; +#else + Queue_t * const pxQueue = xQueue; +#endif configASSERT( pxQueue ); uxReturn = pxQueue->uxMessagesWaiting; @@ -71,3 +73,5 @@ UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) return uxReturn; } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */ + +/* *INDENT-ON* */ |