From ed71c16797d0aaceec660880862768dd1cae8084 Mon Sep 17 00:00:00 2001 From: zenon Date: Thu, 7 Jun 2018 16:48:04 +0200 Subject: [PATCH] Add new variable for CIRC_BUF_SIZE --- common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.h b/common.h index 31a0014..8166a71 100644 --- a/common.h +++ b/common.h @@ -35,12 +35,13 @@ #define SEM_WRITE_END "/sem_write_end_01527193" #define MAX_ITEMS 16 +#define CIRC_BUF_SIZE 17 struct circ_buf { int quit; int head; int tail; - int data[MAX_ITEMS+1]; + int data[CIRC_BUF_SIZE]; }; #endif /* ifndef COMMON_H */