speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/1] move BUF_SIZE to the server.c where it is used


From: Andrei Kholodnyi
Subject: [PATCH 1/1] move BUF_SIZE to the server.c where it is used
Date: Fri, 29 Jan 2016 23:31:56 +0100

BUF_SIZE is only used by server while receiving messages
there is no need to keep it in the speechd.h
---
 src/server/server.c  | 3 +++
 src/server/speechd.h | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/server/server.c b/src/server/server.c
index 3191457..727d8da 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -32,6 +32,9 @@
 #include "sem_functions.h"
 #include "history.h"
 
+/* Size of the buffer for socket communication */
+#define BUF_SIZE 128
+
 int last_message_id = 0;
 
 /* Put a message into its queue.
diff --git a/src/server/speechd.h b/src/server/speechd.h
index e5e620b..7ae5256 100644
--- a/src/server/speechd.h
+++ b/src/server/speechd.h
@@ -115,9 +115,6 @@ typedef struct {
        TFDSetElement val;
 } TFDSetClientSpecific;
 
-/* Size of the buffer for socket communication */
-#define BUF_SIZE 128
-
 /* Mode of speechd execution */
 typedef enum {
        SPD_MODE_DAEMON,        /* Run as daemon (background, ...) */
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]