# HG changeset patch # User Bernd Schubert <bernd.schub...@fastmail.fm> # Date 1289577717 -3600 # Node ID 112b6e5408892b791dbd46b66ce75fe98dd06c26 # Parent 750c5a016d8135a7170d4a2fbe0de0f98478c572 cl_log: Fix white space
Signed-off-by: Bernd Schubert <bschub...@ddn.com> 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 @@ -160,8 +160,8 @@ cl_log_get_logdtime(void) void cl_log_set_logdtime(int logdtime) -{ - conn_logd_time = logdtime; +{ + conn_logd_time = logdtime; return; } @@ -275,7 +275,7 @@ add_logging_channel_mainloop(IPC_Channel if (chp == NULL){ cl_log(LOG_INFO, "adding logging channel to mainloop failed"); - } + } logging_chan_in_main_loop = TRUE; @@ -297,14 +297,14 @@ create_logging_channel(void) { GHashTable* attrs; char path[] = IPC_PATH_ATTR; - char sockpath[] = HA_LOGDAEMON_IPC; + char sockpath[] = HA_LOGDAEMON_IPC; IPC_Channel* chan; static gboolean complained_yet = FALSE; attrs = g_hash_table_new(g_str_hash, g_str_equal); - g_hash_table_insert(attrs, path, sockpath); + g_hash_table_insert(attrs, path, sockpath); - chan =ipc_channel_constructor(IPC_ANYTYPE, attrs); + chan =ipc_channel_constructor(IPC_ANYTYPE, attrs); g_hash_table_destroy(attrs); @@ -331,7 +331,7 @@ create_logging_channel(void) if (create_logging_channel_callback){ create_logging_channel_callback(chan); - } + } return chan; @@ -353,7 +353,7 @@ cl_log_test_logd(void) logging_daemon_chan = chan = NULL; } - logging_daemon_chan = chan = create_logging_channel(); + logging_daemon_chan = chan = create_logging_channel(); if (chan == NULL){ return FALSE; @@ -363,7 +363,7 @@ cl_log_test_logd(void) if (!logging_chan_in_main_loop){ chan->ops->destroy(chan); } - logging_daemon_chan = chan = NULL; + logging_daemon_chan = chan = NULL; return FALSE; } @@ -404,18 +404,18 @@ cl_log_set_entity(const char * entity) void cl_log_set_logfile(const char * path) { - if(path != NULL && strcasecmp("/dev/null", path) == 0) { - path = NULL; - } + if(path != NULL && strcasecmp("/dev/null", path) == 0) { + path = NULL; + } logfile_name = path; } void cl_log_set_debugfile(const char * path) { - if(path != NULL && strcasecmp("/dev/null", path) == 0) { - path = NULL; - } - debugfile_name = path; + if(path != NULL && strcasecmp("/dev/null", path) == 0) { + path = NULL; + } + debugfile_name = path; } _______________________________________________________ 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/