Skip to content

Commit

Permalink
csp_qfifo: Make qfifo_queue_buffer static
Browse files Browse the repository at this point in the history
This commit changes the scope of
`qfifo_queue_buffer` from global to local.
There appears to be no clear reason for
exposing the internal implementation details
of the queue.
  • Loading branch information
dimitrovand authored and yashi committed Sep 1, 2024
1 parent 8f9903e commit 57e2a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csp_qfifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

static csp_static_queue_t qfifo_queue __noinit;
static csp_queue_handle_t qfifo_queue_handle __noinit;
char qfifo_queue_buffer[sizeof(csp_qfifo_t) * CSP_QFIFO_LEN] __noinit;
static char qfifo_queue_buffer[sizeof(csp_qfifo_t) * CSP_QFIFO_LEN] __noinit;

void csp_qfifo_init(void) {
qfifo_queue_handle = csp_queue_create_static(CSP_QFIFO_LEN, sizeof(csp_qfifo_t), qfifo_queue_buffer, &qfifo_queue);
Expand Down

0 comments on commit 57e2a68

Please sign in to comment.