summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/capture/capture_buffer.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-12 11:12:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-12 13:24:42 +0200
commit2f11d4a0144207321838f746471b56c4cfa40a0d (patch)
tree5fd054c144bc0cdca8d8a93fe037ee03cc690f95 /cpukit/libmisc/capture/capture_buffer.h
parentsmptests/smpcapture02: Adjust for clock changes (diff)
downloadrtems-2f11d4a0144207321838f746471b56c4cfa40a0d.tar.bz2
capture: Fix buffer allocation and free
Do not use function static variables. Remove superfluous volatile qualifiers. Use proper integer types. Close #2706.
Diffstat (limited to '')
-rw-r--r--cpukit/libmisc/capture/capture_buffer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libmisc/capture/capture_buffer.h b/cpukit/libmisc/capture/capture_buffer.h
index ebcc464d6c..2b90b0abc2 100644
--- a/cpukit/libmisc/capture/capture_buffer.h
+++ b/cpukit/libmisc/capture/capture_buffer.h
@@ -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 )