From: Jim Meyering <[email protected]>

* include/corosync/mar_cpg.h: make src params const.
---
 include/corosync/mar_cpg.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/corosync/mar_cpg.h b/include/corosync/mar_cpg.h
index 734e613..06b0fd4 100644
--- a/include/corosync/mar_cpg.h
+++ b/include/corosync/mar_cpg.h
@@ -48,7 +48,7 @@ static inline void swab_mar_cpg_name_t (mar_cpg_name_t 
*to_swab)

 static inline void marshall_from_mar_cpg_name_t (
        struct cpg_name *dest,
-       mar_cpg_name_t *src)
+       const mar_cpg_name_t *src)
 {
        dest->length = src->length;
        memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
@@ -61,7 +61,7 @@ static inline void marshall_to_mar_cpg_name_t (
        dest->length = src->length;
        memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
 }
-               
+
 typedef struct {
         mar_uint32_t nodeid __attribute__((aligned(8)));
         mar_uint32_t pid __attribute__((aligned(8)));
@@ -70,7 +70,7 @@ typedef struct {

 static inline void marshall_from_mar_cpg_address_t (
        struct cpg_address *dest,
-       mar_cpg_address_t *src)
+       const mar_cpg_address_t *src)
 {
        dest->nodeid = src->nodeid;
        dest->pid = src->pid;
@@ -79,7 +79,7 @@ static inline void marshall_from_mar_cpg_address_t (

 static inline void marshall_to_mar_cpg_address_t (
        mar_cpg_address_t *dest,
-       struct cpg_address *src)
+       const struct cpg_address *src)
 {
        dest->nodeid = src->nodeid;
        dest->pid = src->pid;
-- 
1.6.2.rc1.285.gc5f54

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

Reply via email to