diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-09-14 22:57:46 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-09-14 22:57:46 +0000 |
commit | 90c8088760d5fd46ad9f5edb58482a491be53f26 (patch) | |
tree | f2177769fd956e2ce9211996ce16e6186f2ad6c9 /daemons/cmirrord/cluster.c | |
parent | a4cc1ef5d9102446be9c9792063f633fdfbd107c (diff) | |
download | lvm2-90c8088760d5fd46ad9f5edb58482a491be53f26.tar.gz lvm2-90c8088760d5fd46ad9f5edb58482a491be53f26.tar.xz lvm2-90c8088760d5fd46ad9f5edb58482a491be53f26.zip |
More cmirror makefile fixes from Fabio.
Diffstat (limited to 'daemons/cmirrord/cluster.c')
-rw-r--r-- | daemons/cmirrord/cluster.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/daemons/cmirrord/cluster.c b/daemons/cmirrord/cluster.c index 0cfe5a9e..27d62627 100644 --- a/daemons/cmirrord/cluster.c +++ b/daemons/cmirrord/cluster.c @@ -21,8 +21,9 @@ #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <corosync/corotypes.h> +#include <corosync/cpg.h> #include <openais/saAis.h> -#include <openais/cpg.h> #include <openais/saCkpt.h> #include "dm-log-userspace.h" @@ -932,9 +933,9 @@ static int flush_startup_list(struct clog_cpg *entry) return 0; } -static void cpg_message_callback(cpg_handle_t handle, struct cpg_name *gname, +static void cpg_message_callback(cpg_handle_t handle, const struct cpg_name *gname, uint32_t nodeid, uint32_t pid, - void *msg, int msg_len) + void *msg, size_t msg_len) { int i; int r = 0; @@ -1154,9 +1155,9 @@ out: } static void cpg_join_callback(struct clog_cpg *match, - struct cpg_address *joined, - struct cpg_address *member_list, - int member_list_entries) + const struct cpg_address *joined, + const struct cpg_address *member_list, + size_t member_list_entries) { int i; int my_pid = getpid(); @@ -1233,9 +1234,9 @@ out: } static void cpg_leave_callback(struct clog_cpg *match, - struct cpg_address *left, - struct cpg_address *member_list, - int member_list_entries) + const struct cpg_address *left, + const struct cpg_address *member_list, + size_t member_list_entries) { int i, j, fd; uint32_t lowest = match->lowest_id; @@ -1366,13 +1367,13 @@ static void cpg_leave_callback(struct clog_cpg *match, } } -static void cpg_config_callback(cpg_handle_t handle, struct cpg_name *gname, - struct cpg_address *member_list, - int member_list_entries, - struct cpg_address *left_list, - int left_list_entries, - struct cpg_address *joined_list, - int joined_list_entries) +static void cpg_config_callback(cpg_handle_t handle, const struct cpg_name *gname, + const struct cpg_address *member_list, + size_t member_list_entries, + const struct cpg_address *left_list, + size_t left_list_entries, + const struct cpg_address *joined_list, + size_t joined_list_entries) { struct clog_cpg *match; int found = 0; |