From: Jim Meyering <meyer...@redhat.com> * include/corosync/totem/totem.h: (TOTEM_PRIVATE_KEY_LEN, TOTEM_RRP_MODE_BYTES): Define. (struct totem_config): Use the new names, rather than literals. --- include/corosync/totem/totem.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/corosync/totem/totem.h b/include/corosync/totem/totem.h index d56f32f..590e6fc 100644 --- a/include/corosync/totem/totem.h +++ b/include/corosync/totem/totem.h @@ -75,6 +75,9 @@ struct totem_logging_configuration { int log_subsys_id; }; +enum { TOTEM_PRIVATE_KEY_LEN = 128 }; +enum { TOTEM_RRP_MODE_BYTES = 64 }; + struct totem_config { int version; @@ -88,7 +91,7 @@ struct totem_config { /* * key information */ - unsigned char private_key[128]; + unsigned char private_key[TOTEM_PRIVATE_KEY_LEN]; unsigned int private_key_len; @@ -123,7 +126,7 @@ struct totem_config { unsigned int rrp_problem_count_threshold; - char rrp_mode[64]; + char rrp_mode[TOTEM_RRP_MODE_BYTES]; struct totem_logging_configuration totem_logging_configuration; -- 1.6.2.rc1.285.gc5f54 _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais