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:
Jim Meyering 2009-03-30 21:09:56 +00:00
parent 2344e2f1b8
commit e487affc01
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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 (