Selaa lähdekoodia

change some char * to const char * to match usage in system in lcr.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1823 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 vuotta sitten
vanhempi
commit
dabaa6463b
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      include/corosync/lcr/lcr_comp.h
  2. 1 1
      include/corosync/lcr/lcr_ifact.h
  3. 1 1
      lcr/lcr_ifact.c

+ 1 - 1
include/corosync/lcr/lcr_comp.h

@@ -35,7 +35,7 @@
  * LCR Interface
  * LCR Interface
  */
  */
 struct lcr_iface {
 struct lcr_iface {
-	char *name;			/* Name of the interface */
+	const char *name;			/* Name of the interface */
 	int version;			/* Version of this interface */
 	int version;			/* Version of this interface */
 	int *versions_replace;		/* Versions that this interface can replace */
 	int *versions_replace;		/* Versions that this interface can replace */
 	int versions_replace_count;	/* Count of entries in version_replace */
 	int versions_replace_count;	/* Count of entries in version_replace */

+ 1 - 1
include/corosync/lcr/lcr_ifact.h

@@ -35,7 +35,7 @@
 
 
 int lcr_ifact_reference (
 int lcr_ifact_reference (
 	hdb_handle_t *handle,
 	hdb_handle_t *handle,
-	char *iface_name,
+	const char *iface_name,
 	int version,
 	int version,
 	void **interface,
 	void **interface,
 	void *context);
 	void *context);

+ 1 - 1
lcr/lcr_ifact.c

@@ -423,7 +423,7 @@ static unsigned int lcr_initialized = 0;
 
 
 int lcr_ifact_reference (
 int lcr_ifact_reference (
 	hdb_handle_t *iface_handle,
 	hdb_handle_t *iface_handle,
-	char *iface_name,
+	const char *iface_name,
 	int version,
 	int version,
 	void **iface,
 	void **iface,
 	void *context)
 	void *context)