Jelajahi Sumber

Fix logsys_set_format by updating the right bits


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1789 fd59a12c-fef9-0310-b244-a6a79926bd2f
Fabio M. Di Nitto 17 tahun lalu
induk
melakukan
e0a74a08b3
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      exec/logsys.c

+ 1 - 3
exec/logsys.c

@@ -112,8 +112,6 @@ static FILE *logsys_file_fp = NULL;
 
 
 static int logsys_facility = LOG_DAEMON;
 static int logsys_facility = LOG_DAEMON;
 
 
-static char *logsys_format = NULL;
-
 /*
 /*
  * operating global variables
  * operating global variables
  */
  */
@@ -875,7 +873,7 @@ void logsys_format_set (char *format)
 {
 {
 	pthread_mutex_lock (&logsys_config_mutex);
 	pthread_mutex_lock (&logsys_config_mutex);
 
 
-	logsys_format = format;
+	format_buffer = format;
 
 
 	pthread_mutex_unlock (&logsys_config_mutex);
 	pthread_mutex_unlock (&logsys_config_mutex);
 }
 }