[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] make highest_priority static
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 1/4] make highest_priority static |
Date: |
Tue, 26 Oct 2010 22:31:03 +0200 |
variable is used only in speaking.c, but was initialized in speechd.c
moved initialization to speaking.c and make highest_priority static
---
src/server/speaking.c | 1 +
src/server/speaking.h | 1 -
src/server/speechd.c | 1 -
3 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/server/speaking.c b/src/server/speaking.c
index 5cf0083..f6a0328 100644
--- a/src/server/speaking.c
+++ b/src/server/speaking.c
@@ -41,6 +41,7 @@
#include "sem_functions.h"
TSpeechDMessage *current_message = NULL;
+static int highest_priority = 0;
int SPEAKING = 0;
int poll_count;
diff --git a/src/server/speaking.h b/src/server/speaking.h
index a0586f2..6951142 100644
--- a/src/server/speaking.h
+++ b/src/server/speaking.h
@@ -31,7 +31,6 @@
OutputModule *speaking_module;
int speaking_uid;
int speaking_gid;
-int highest_priority;
/* Pause and resume handling */
int pause_requested;
diff --git a/src/server/speechd.c b/src/server/speechd.c
index 0d379dc..b4cce8a 100644
--- a/src/server/speechd.c
+++ b/src/server/speechd.c
@@ -653,7 +653,6 @@ speechd_init()
last_p5_block = NULL;
- highest_priority = 0;
}
void
--
1.6.0.4
- [PATCH 1/4] make highest_priority static,
Andrei Kholodnyi <=