From 422273560085d5173dda2c5642f91f5ced82ba03 Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Sat, 1 Feb 2020 15:45:47 +0100 Subject: [PATCH] Converted inline to static inline. --- utils/include/buffer.h | 6 +++--- utils/include/stm32_time.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/include/buffer.h b/utils/include/buffer.h index f5ab293..ab6a770 100644 --- a/utils/include/buffer.h +++ b/utils/include/buffer.h @@ -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; } diff --git a/utils/include/stm32_time.h b/utils/include/stm32_time.h index f45ac7b..1947809 100644 --- a/utils/include/stm32_time.h +++ b/utils/include/stm32_time.h @@ -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; } -- GitLab