forked from Imagelibrary/rtems
capture: Fix buffer allocation and free
Do not use function static variables. Remove superfluous volatile qualifiers. Use proper integer types. Close #2706.
This commit is contained in:
@@ -32,12 +32,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint8_t *buffer;
|
||||
size_t size;
|
||||
volatile uint32_t count;
|
||||
volatile uint32_t head;
|
||||
volatile uint32_t tail;
|
||||
volatile uint32_t end;
|
||||
uint8_t *buffer;
|
||||
size_t size;
|
||||
size_t count;
|
||||
size_t head;
|
||||
size_t tail;
|
||||
size_t end;
|
||||
} rtems_capture_buffer_t;
|
||||
|
||||
static inline void rtems_capture_buffer_flush( rtems_capture_buffer_t* buffer )
|
||||
|
||||
Reference in New Issue
Block a user