# HG changeset patch # User Bernd Schubert <bernd.schub...@fastmail.fm> # Date 1289577717 -3600 # Node ID f2a2ff2116ed27380b8610cfb465846c81d03d63 # Parent 29e6f92c03fef920e1798a2759d193517c2820bd cl_log: Make functions static
Signed-off-by: Bernd Schubert <bschub...@ddn.com> diff --git a/include/clplumbing/cl_log.h b/include/clplumbing/cl_log.h --- a/include/clplumbing/cl_log.h +++ b/include/clplumbing/cl_log.h @@ -39,7 +39,6 @@ void cl_log(int priority, con void cl_perror(const char * fmt, ...) G_GNUC_PRINTF(1,2); void cl_log_enable_stderr(int truefalse); void cl_log_enable_stdout(int truefalse); -int cl_set_logging_wqueue_maxlen(int); gboolean cl_log_test_logd(void); void cl_log_set_uselogd(int truefalse); void cl_log_enable_syslog_filefmt(int truefalse); @@ -48,7 +47,6 @@ void cl_log_set_facility(int facility); void cl_log_set_entity(const char * entity); void cl_log_set_logfile(const char * path); void cl_log_set_debugfile(const char * path); -void inherit_compress(void); void cl_inherit_logging_environment(int maxqlen); int cl_log_set_logd_channel_source( void (*create_callback)(struct IPC_CHANNEL* chan), GDestroyNotify destroy_callback); diff --git a/lib/clplumbing/cl_log.c b/lib/clplumbing/cl_log.c --- a/lib/clplumbing/cl_log.c +++ b/lib/clplumbing/cl_log.c @@ -69,10 +69,11 @@ static gboolean syslogformatfile = TRUE int LogToDaemon(int priority, const char * buf, int bstrlen, gboolean use_pri_str); static int LogToLoggingDaemon(int priority, const char * buf, int bstrlen, gboolean use_pri_str); -IPC_Message* ChildLogIPCMessage(int priority, const char *buf, int bstrlen, +static IPC_Message* ChildLogIPCMessage(int priority, const char *buf, int bstrlen, gboolean use_priority_str, IPC_Channel* ch); -void FreeChildLogIPCMessage(IPC_Message* msg); -gboolean send_dropped_message(gboolean use_pri_str, IPC_Channel *chan); +static void FreeChildLogIPCMessage(IPC_Message* msg); +static gboolean send_dropped_message(gboolean use_pri_str, IPC_Channel *chan); +static int cl_set_logging_wqueue_maxlen(int qlen); static int use_logging_daemon = FALSE; static int conn_logd_time = 0; @@ -172,7 +173,7 @@ cl_log_set_logdtime(int logdtime) #define TRADITIONAL_COMPRESSION "HA_traditional_compression" #define COMPRESSION "HA_compression" -void +static void inherit_compress(void) { char* inherit_env = NULL; @@ -733,7 +734,7 @@ ha_timestamp(TIME_T t) } -int +static int cl_set_logging_wqueue_maxlen(int qlen) { int sendrc; @@ -896,7 +897,7 @@ LogToLoggingDaemon(int priority, const c } -gboolean +static gboolean send_dropped_message(gboolean use_pri_str, IPC_Channel *chan) { int sendrc; @@ -943,7 +944,7 @@ childlog_dump_ipcmsg_stats(void) } -IPC_Message* +static IPC_Message* ChildLogIPCMessage(int priority, const char *buf, int bufstrlen, gboolean use_prio_str, IPC_Channel* ch) { @@ -1008,7 +1009,7 @@ ChildLogIPCMessage(int priority, const c } -void +static void FreeChildLogIPCMessage(IPC_Message* msg) { if (msg == NULL) { _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/