#ifdef MUSE_USE_CLIENT_SIGHANDLER
/* signal handler */
-struct sigaction mc_int_old_action;
-struct sigaction mc_abrt_old_action;
-struct sigaction mc_segv_old_action;
-struct sigaction mc_term_old_action;
-struct sigaction mc_sys_old_action;
+static struct sigaction mc_int_old_action;
+static struct sigaction mc_abrt_old_action;
+static struct sigaction mc_segv_old_action;
+static struct sigaction mc_term_old_action;
+static struct sigaction mc_sys_old_action;
static gboolean _mc_table_remove_func(gpointer key, gpointer value, gpointer user_data);
static void _mc_sigaction(int signo, siginfo_t *siginfo, void *context);
#define MUSE_WATCHDOG_CHECK_COUNT 3
#define MUSE_WATCHDOG_TIMER_PERIOD 5
-const char *msg_type[] = { "normal type", "fds type" };
+static const char *msg_type[] = { "normal type", "fds type" };
static GMutex msg_lock;
static GMutex msg_ipc_lock;
Name: mused
Summary: A multimedia daemon
-Version: 0.3.98
+Version: 0.3.99
Release: 0
Group: System/Libraries
License: Apache-2.0
#include <execinfo.h>
#include <dlfcn.h>
-struct sigaction ms_segv_old_action;
-struct sigaction ms_abrt_old_action;
-struct sigaction ms_term_old_action;
-struct sigaction ms_bus_old_action;
-struct sigaction ms_xcpu_old_action;
-struct sigaction ms_pipe_old_action;
+static struct sigaction ms_segv_old_action;
+static struct sigaction ms_abrt_old_action;
+static struct sigaction ms_term_old_action;
+static struct sigaction ms_bus_old_action;
+static struct sigaction ms_xcpu_old_action;
+static struct sigaction ms_pipe_old_action;
static GMutex signal_lock;
#include "muse_server_tool.h"
#include <fts.h>
-int ms_tool_optind = 1;
-int ms_tool_optopt;
-char *ms_tool_optarg;
+static int ms_tool_optind = 1;
+static char *ms_tool_optarg;
static const char *pid_file = NULL;
static const char *out_file = NULL;
if (ms_tool_optind >= argc || argv[ms_tool_optind][0] != '-' || argv[ms_tool_optind][1] == '\0')
return(EOF);
}
- ms_tool_optopt = ri = argv[ms_tool_optind][si];
+ ri = argv[ms_tool_optind][si];
if (ri == ':' || !(cp = strchr(opts, ri))) {
if (argv[ms_tool_optind][++si] == '\0') {
ms_tool_optind++;