[Debian-ha-commits] [pacemaker] 05/69: Fix an unused variable warning

Christoph Berg myon at debian.org
Tue Jan 26 09:14:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch debian/master
in repository pacemaker.

commit 4f6c8c2b917cb98e079b3636ac596fcbb5253e46
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Tue Dec 15 14:37:19 2015 +0100

    Fix an unused variable warning
    
    Found while building on FreeBSD
---
 lib/fencing/st_client.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c
index 83f6f7d..cc21503 100644
--- a/lib/fencing/st_client.c
+++ b/lib/fencing/st_client.c
@@ -123,6 +123,7 @@ struct timer_rec_s {
 typedef int (*stonith_op_t) (const char *, int, const char *, xmlNode *,
                              xmlNode *, xmlNode *, xmlNode **, xmlNode **);
 
+#if HAVE_STONITH_STONITH_H
 static const char META_TEMPLATE[] =
     "<?xml version=\"1.0\"?>\n"
     "<!DOCTYPE resource-agent SYSTEM \"ra-api-1.dtd\">\n"
@@ -142,6 +143,7 @@ static const char META_TEMPLATE[] =
     "  </actions>\n"
     "  <special tag=\"heartbeat\">\n"
     "    <version>2.0</version>\n" "  </special>\n" "</resource-agent>\n";
+#endif
 
 bool stonith_dispatch(stonith_t * st);
 int stonith_dispatch_internal(const char *buffer, ssize_t length, gpointer userdata);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list