diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-20 06:23:24 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-20 06:23:24 +0000 |
commit | b408a5fe62f5ac8be551f4998a6763465a21f053 (patch) | |
tree | 13f0bd95f033472c636e91c580fae79cbdebd438 /Projects/XPLAINBridge/Lib/RingBuff.c | |
parent | e73f05b8b2de5485c97a305b4a7e940bb5636f49 (diff) | |
download | lufa-b408a5fe62f5ac8be551f4998a6763465a21f053.tar.gz lufa-b408a5fe62f5ac8be551f4998a6763465a21f053.tar.bz2 lufa-b408a5fe62f5ac8be551f4998a6763465a21f053.zip |
Add const qualifier to the parameters of Projects' functions where possible.
Diffstat (limited to 'Projects/XPLAINBridge/Lib/RingBuff.c')
-rw-r--r-- | Projects/XPLAINBridge/Lib/RingBuff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Projects/XPLAINBridge/Lib/RingBuff.c b/Projects/XPLAINBridge/Lib/RingBuff.c index 0dd4a06bb..7b966ddb7 100644 --- a/Projects/XPLAINBridge/Lib/RingBuff.c +++ b/Projects/XPLAINBridge/Lib/RingBuff.c @@ -30,7 +30,7 @@ #include "RingBuff.h"
-void Buffer_Initialize(RingBuff_t* Buffer)
+void Buffer_Initialize(RingBuff_t* const Buffer)
{
BUFF_ATOMIC_BLOCK
{
@@ -40,7 +40,7 @@ void Buffer_Initialize(RingBuff_t* Buffer) }
}
-void Buffer_StoreElement(RingBuff_t* Buffer, RingBuff_Data_t Data)
+void Buffer_StoreElement(RingBuff_t* const Buffer, RingBuff_Data_t Data)
{
BUFF_ATOMIC_BLOCK
{
@@ -73,7 +73,7 @@ void Buffer_StoreElement(RingBuff_t* Buffer, RingBuff_Data_t Data) }
}
-RingBuff_Data_t Buffer_GetElement(RingBuff_t* Buffer)
+RingBuff_Data_t Buffer_GetElement(RingBuff_t* const Buffer)
{
RingBuff_Data_t BuffData;
@@ -99,7 +99,7 @@ RingBuff_Data_t Buffer_GetElement(RingBuff_t* Buffer) }
#if defined(BUFF_USEPEEK)
-RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* Buffer)
+RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* const Buffer)
{
RingBuff_Data_t BuffData;
|