Commit 17c17855 authored by Karl Heyes's avatar Karl Heyes

correct type for volatile usage and uncomment log message for stats updating

svn path=/icecast/trunk/icecast/; revision=8123
parent 5db66780
......@@ -79,7 +79,7 @@ static mutex_t _connection_mutex;
static volatile unsigned long _current_id = 0;
static int _initialized = 0;
static volatile con_queue_t *_queue = NULL;
volatile static con_queue_t *_queue = NULL;
static mutex_t _queue_mutex;
static thread_queue_t *_conhands = NULL;
......
......@@ -61,7 +61,7 @@
#endif
static fserve_t *active_list = NULL;
static volatile fserve_t *pending_list = NULL;
volatile static fserve_t *pending_list = NULL;
static mutex_t pending_lock;
static avl_tree *mimetypes = NULL;
......
......@@ -57,17 +57,17 @@ typedef struct _event_listener_tag
struct _event_listener_tag *next;
} event_listener_t;
static volatile int _stats_running = 0;
volatile static int _stats_running = 0;
static thread_type *_stats_thread_id;
static volatile int _stats_threads = 0;
volatile static int _stats_threads = 0;
static stats_t _stats;
static mutex_t _stats_mutex;
static volatile stats_event_t *_global_event_queue;
volatile static stats_event_t *_global_event_queue;
mutex_t _global_event_mutex;
static volatile event_listener_t *_event_listeners;
volatile static event_listener_t *_event_listeners;
static void *_stats_thread(void *arg);
......@@ -398,7 +398,7 @@ static void modify_node_event (stats_node_t *node, stats_event_t *event)
str = (char *)strdup (event->value);
free (node->value);
node->value = str;
/* DEBUG3 ("update node %s \"%s\" (%d)", node->name, node->value, event->action); */
DEBUG2 ("update node %s (%s)", node->name, node->value);
}
......
......@@ -84,7 +84,7 @@ typedef struct ypdata_tag
static rwlock_t yp_lock;
static mutex_t yp_pending_lock;
static volatile struct yp_server *active_yps = NULL, *pending_yps = NULL;
volatile static struct yp_server *active_yps = NULL, *pending_yps = NULL;
static volatile int yp_update = 0;
static int yp_running;
static time_t now;
......
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