Skip to content
Snippets Groups Projects
Commit 42227356 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Converted inline to static inline.

parent fa89f261
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ typedef struct
* memory is not pre-allocated before calling this function, its
* behavior is unpredictable.
*/
inline void buffer_init(TBuffer *buffer)
static inline void buffer_init(TBuffer *buffer)
{
buffer->wr_ptr=0x00000000;
buffer->rd_ptr=0x00000000;
......@@ -116,7 +116,7 @@ inline void buffer_init(TBuffer *buffer)
* memory is not pre-allocated before calling this function, its
* behavior is unpredictable.
*/
inline void buffer_flush(TBuffer *buffer)
static inline void buffer_flush(TBuffer *buffer)
{
buffer->wr_ptr=buffer->rd_ptr;
buffer->num_data=0;
......@@ -136,7 +136,7 @@ inline void buffer_flush(TBuffer *buffer)
* \return the number of bytes in the buffer. This is a number between 0 and
* MAX_BUFFER_LENGTH.
*/
inline unsigned short int buffer_get_num_data(TBuffer *buffer)
static inline unsigned short int buffer_get_num_data(TBuffer *buffer)
{
return buffer->num_data;
}
......
......@@ -129,7 +129,7 @@ unsigned char time_is_timeout(TTime *time);
* memory is not pre-allocated before calling this function, its
* behavior is unpredictable.
*/
inline void time_cancel_timeout(TTime *time)
static inline void time_cancel_timeout(TTime *time)
{
time->target_time=(unsigned long long int)-1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment