1 file changed, 5 insertions(+), 4 deletions(-)
tools/attrd.c |    9 +++++----


# HG changeset patch
# User Andrew Beekhof <[EMAIL PROTECTED]>
# Date 1224872967 -7200
# Node ID a72377d947e546bcee1246081c2601cfaf8e3dc5
# Parent  c557dbe05da57b734d7112dae07c1193cbdf8c02
Dev: Tools: Fix attrd compilation

diff --git a/tools/attrd.c b/tools/attrd.c
--- a/tools/attrd.c
+++ b/tools/attrd.c
@@ -371,12 +371,13 @@ attrd_ais_dispatch(AIS_Message *wrapper,
     }
 
     if(xml != NULL) {
+	attr_hash_entry_t *hash_entry = NULL;
+	const char *op     = crm_element_value(xml, F_ATTRD_TASK);
+	const char *ignore = crm_element_value(xml, F_ATTRD_IGNORE_LOCALLY);
+
 	crm_xml_add_int(xml, F_SEQ, wrapper->id);
 	crm_xml_add(xml, F_ORIG, wrapper->sender.uname);
 	
-	const char *op     = crm_element_value(xml, F_ATTRD_TASK);
-	const char *ignore = crm_element_value(xml, F_ATTRD_IGNORE_LOCALLY);
-
 	if(ignore == NULL || safe_str_neq(wrapper->sender.uname, attrd_uname)) {
 	    crm_info("%s message from %s", op, wrapper->sender.uname);
 	    hash_entry = find_hash_entry(xml);
@@ -391,7 +392,7 @@ attrd_ais_dispatch(AIS_Message *wrapper,
 }
 
 static void
-attrd_ais_destroy(gpointer)
+attrd_ais_destroy(gpointer unused)
 {
     ais_fd_sync = -1;
     if(need_shutdown) {
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to