Commit f86d02bb authored by Ed "oddsock" Zaleski's avatar Ed "oddsock" Zaleski

add volatile keywords to a few variables

reset max_interval back to 0 on slave initialization

svn path=/icecast/trunk/icecast/; revision=8112
parent 82b8e2b6
......@@ -62,8 +62,8 @@
static void *_slave_thread(void *arg);
thread_type *_slave_thread_id;
static int slave_running = 0;
static unsigned int max_interval = 0;
static int rescan_relays = 0;
volatile static unsigned int max_interval = 0;
volatile static int rescan_relays = 0;
relay_server *relay_free (relay_server *relay)
{
......@@ -118,6 +118,7 @@ void slave_initialize(void)
return;
slave_running = 1;
max_interval = 0;
_slave_thread_id = thread_create("Slave Thread", _slave_thread, NULL, THREAD_ATTACHED);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment