Przeglądaj źródła

Remove qualifier warnings regarding totemrrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1802 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 lat temu
rodzic
commit
120ed48344
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      exec/totemrrp.c

+ 5 - 5
exec/totemrrp.c

@@ -95,7 +95,7 @@ struct active_instance {
 };
 };
 
 
 struct rrp_algo {
 struct rrp_algo {
-	char *name;
+	const char *name;
 
 
 	void * (*initialize) (
 	void * (*initialize) (
 		struct totemrrp_instance *rrp_instance,
 		struct totemrrp_instance *rrp_instance,
@@ -196,9 +196,9 @@ struct totemrrp_instance {
 
 
 	int totemrrp_subsys_id;
 	int totemrrp_subsys_id;
 
 
-	void (*totemrrp_log_printf) (int subsys, char *function, char *file,
-		int line, unsigned int level, char *format,
-		...)__attribute__((format(printf, 6, 7)));
+	void (*totemrrp_log_printf) (int subsys, const char *function,
+		const char *file, int line, unsigned int level,
+		const char *format, ...)__attribute__((format(printf, 6, 7)));
 
 
 	hdb_handle_t handle;
 	hdb_handle_t handle;
 
 
@@ -468,7 +468,7 @@ static struct hdb_handle_database totemrrp_instance_database = {
 do {									\
 do {									\
 	rrp_instance->totemrrp_log_printf (				\
 	rrp_instance->totemrrp_log_printf (				\
 		rrp_instance->totemrrp_subsys_id,			\
 		rrp_instance->totemrrp_subsys_id,			\
-		(char *)__FUNCTION__, __FILE__, __LINE__, level,	\
+		__FUNCTION__, __FILE__, __LINE__, level,		\
 		format, ##args);					\
 		format, ##args);					\
 } while (0);
 } while (0);