From: Jim Meyering <[email protected]>

* include/corosync/cpg.h (cpg_callbacks_t):
* include/corosync/mar_cpg.h (marshall_to_mar_cpg_name_t):
* lib/cpg.c (cpg_join, cpg_leave):
---
 include/corosync/cpg.h     |    4 ++--
 include/corosync/mar_cpg.h |    4 ++--
 lib/cpg.c                  |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/corosync/cpg.h b/include/corosync/cpg.h
index 7ccb729..7ed5a98 100644
--- a/include/corosync/cpg.h
+++ b/include/corosync/cpg.h
@@ -157,14 +157,14 @@ cs_error_t cpg_dispatch (
  */
 cs_error_t cpg_join (
        cpg_handle_t handle,
-       struct cpg_name *group);
+       const struct cpg_name *group);

 /*
  * Leave one or more groups
  */
 cs_error_t cpg_leave (
        cpg_handle_t handle,
-       struct cpg_name *group);
+       const struct cpg_name *group);

 /*
  * Multicast to groups joined with cpg_join.
diff --git a/include/corosync/mar_cpg.h b/include/corosync/mar_cpg.h
index 08c9d15..734e613 100644
--- a/include/corosync/mar_cpg.h
+++ b/include/corosync/mar_cpg.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2008 Red Hat, Inc.
+ * Copyright (c) 2006-2009 Red Hat, Inc.
  * Author: Patrick Caulfield ([email protected])
  *
  * All rights reserved.
@@ -56,7 +56,7 @@ static inline void marshall_from_mar_cpg_name_t (

 static inline void marshall_to_mar_cpg_name_t (
        mar_cpg_name_t *dest,
-       struct cpg_name *src)
+       const struct cpg_name *src)
 {
        dest->length = src->length;
        memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
diff --git a/lib/cpg.c b/lib/cpg.c
index 74de3ae..1a66630 100644
--- a/lib/cpg.c
+++ b/lib/cpg.c
@@ -1,7 +1,7 @@
 /*
  * vi: set autoindent tabstop=4 shiftwidth=4 :
  *
- * Copyright (c) 2006-2008 Red Hat, Inc.
+ * Copyright (c) 2006-2009 Red Hat, Inc.
  *
  * All rights reserved.
  *
@@ -386,7 +386,7 @@ error_put:

 cs_error_t cpg_join (
     cpg_handle_t handle,
-    struct cpg_name *group)
+    const struct cpg_name *group)
 {
        cs_error_t error;
        struct cpg_inst *cpg_inst;
@@ -449,7 +449,7 @@ error_exit:

 cs_error_t cpg_leave (
     cpg_handle_t handle,
-    struct cpg_name *group)
+    const struct cpg_name *group)
 {
        cs_error_t error;
        struct cpg_inst *cpg_inst;
-- 
1.6.2.rc1.285.gc5f54

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to