[Pacemaker] [PATCH 7/8 ] cl_log: Clean up white space

Bernd Schubert bs_lists at aakef.fastmail.fm
Wed Sep 15 22:18:50 UTC 2010


cl_log: Clean up white space


Signed-off-by: Bernd Schubert <bschubert at 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
@@ -161,8 +161,8 @@ cl_log_get_logdtime(void)
 
 void
 cl_log_set_logdtime(int logdtime)
-{	
-	conn_logd_time = logdtime;	
+{
+	conn_logd_time = logdtime;
 	return;
 }
 
@@ -276,7 +276,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;
 	
@@ -298,14 +298,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);	
 	
@@ -332,7 +332,7 @@ create_logging_channel(void)
 
 	if (create_logging_channel_callback){
 		create_logging_channel_callback(chan);
-	}		
+	}
 	
 	
 	return chan;
@@ -354,7 +354,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;
@@ -364,7 +364,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;
 	}
 	
@@ -416,18 +416,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;
 }
 
 




More information about the Pacemaker mailing list