Просмотр исходного кода

objdb.c (object_reload_config): add const

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1931 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 лет назад
Родитель
Сommit
39001fd1f6
3 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      include/corosync/engine/coroapi.h
  2. 1 1
      include/corosync/engine/objdb.h
  3. 2 2
      lib/sa-confdb.c

+ 1 - 1
include/corosync/engine/coroapi.h

@@ -345,7 +345,7 @@ struct corosync_api_v1 {
 	int (*object_write_config) (char **error_string);
 
 	int (*object_reload_config) (int flush,
-				     char **error_string);
+				     const char **error_string);
 
 	int (*object_key_increment) (
 		hdb_handle_t object_handle,

+ 1 - 1
include/corosync/engine/objdb.h

@@ -221,7 +221,7 @@ struct objdb_iface_ver0 {
 
 	int (*object_reload_config) (
 		int flush,
-		char **error_string);
+		const char **error_string);
 
 	int (*object_key_increment) (
 		hdb_handle_t object_handle,

+ 2 - 2
lib/sa-confdb.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008 Red Hat, Inc.
+ * Copyright (c) 2008, 2009 Red Hat, Inc.
  *
  * All rights reserved.
  *
@@ -322,7 +322,7 @@ int confdb_sa_reload (
 	char *errtext;
 	int ret;
 
-	ret = objdb->object_reload_config(flush, &errtext);
+	ret = objdb->object_reload_config(flush, (const char **) &errtext);
 	if (!ret)
 		strcpy(error_text, errtext);