Sfoglia il codice sorgente

Remove const warnings relating to logsys global definitions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1806 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 anni fa
parent
commit
64aab2e950
2 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 5 5
      exec/logsys.c
  2. 6 6
      include/corosync/engine/logsys.h

+ 5 - 5
exec/logsys.c

@@ -612,8 +612,8 @@ int _logsys_rec_init (unsigned int size)
  */
 void _logsys_log_rec (
 	int subsys,
-	char *function_name,
-	char *file_name,
+	const char *function_name,
+	const char *file_name,
 	int file_line,
 	unsigned int rec_ident,
 	...)
@@ -763,11 +763,11 @@ void _logsys_log_rec (
 
 void _logsys_log_printf (
         int subsys,
-        char *function_name,
-        char *file_name,
+        const char *function_name,
+        const char *file_name,
         int file_line,
         unsigned int level,
-        char *format,
+        const char *format,
         ...)
 {
 	char logsys_print_buffer[COMBINE_BUFFER_SIZE];

+ 6 - 6
include/corosync/engine/logsys.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2002-2004 MontaVista Software, Inc.
- * Copyright (c) 2006-2008 Red Hat, Inc.
+ * Copyright (c) 2006-2009 Red Hat, Inc.
  *
  * Author: Steven Dake (sdake@redhat.com)
  * Author: Lon Hohberger (lhh@redhat.com)
@@ -148,17 +148,17 @@ extern int _logsys_rec_init (unsigned int size);
 
 extern void _logsys_log_printf (
 	int subsys,
-	char *function_name,
-	char *file_name,
+	const char *function_name,
+	const char *file_name,
 	int file_line,
 	unsigned int level,
-	char *format,
+	const char *format,
 	...) __attribute__((format(printf, 6, 7)));
 
 extern void _logsys_log_rec (
 	int subsys,
-	char *function_name,
-	char *file_name,
+	const char *function_name,
+	const char *file_name,
 	int file_line,
 	unsigned int rec_ident,
 	...);