mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-01-23 17:42:31 +00:00
logsys_config_facility_set: make "name" parameter const
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1919 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
2344e2f1b8
commit
e487affc01
@ -110,7 +110,7 @@ struct logsys_logger {
|
||||
/*
|
||||
* Configuration parameters for logging system
|
||||
*/
|
||||
static char *logsys_name = NULL;
|
||||
static const char *logsys_name = NULL;
|
||||
|
||||
static unsigned int logsys_mode = LOG_MODE_NOSUBSYS;
|
||||
|
||||
@ -928,7 +928,7 @@ char *logsys_format_get (void)
|
||||
return format_buffer;
|
||||
}
|
||||
|
||||
void logsys_config_facility_set (char *name, unsigned int facility)
|
||||
void logsys_config_facility_set (const char *name, unsigned int facility)
|
||||
{
|
||||
pthread_mutex_lock (&logsys_config_mutex);
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ extern int logsys_config_file_set (
|
||||
char *file);
|
||||
|
||||
extern void logsys_config_facility_set (
|
||||
char *name,
|
||||
const char *name,
|
||||
unsigned int facility);
|
||||
|
||||
extern void logsys_format_set (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user