public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - rgmanager: Fix --debug build
@ 2009-06-23 14:08 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-23 14:08 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=40f6289f257fe1338cadfb5329acb1cf450342bc
Commit: 40f6289f257fe1338cadfb5329acb1cf450342bc
Parent: 58f5ea38060b84b91f043e6f51a2701343f04176
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Tue Jun 23 10:07:14 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Tue Jun 23 10:07:55 2009 -0400
rgmanager: Fix --debug build
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/include/resgroup.h | 2 ++
rgmanager/src/daemons/rg_state.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/rgmanager/include/resgroup.h b/rgmanager/include/resgroup.h
index 8e585e7..5dc84d4 100644
--- a/rgmanager/include/resgroup.h
+++ b/rgmanager/include/resgroup.h
@@ -181,9 +181,11 @@ uint32_t best_target_node(cluster_member_list_t *allowed, uint32_t owner,
const char *rg_name, int lock);
#ifdef DEBUG
+int _rg_lock(const char *name, struct dlm_lksb *p);
int _rg_lock_dbg(const char *, struct dlm_lksb *, const char *, int);
#define rg_lock(name, p) _rg_lock_dbg(name, p, __FILE__, __LINE__)
+int _rg_unlock(struct dlm_lksb *p);
int _rg_unlock_dbg(struct dlm_lksb *, const char *, int);
#define rg_unlock(p) _rg_unlock_dbg(p, __FILE__, __LINE__)
diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index 75948e4..16204e1 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -141,7 +141,7 @@ rg_unlock(struct dlm_lksb *p)
#ifdef DEBUG
int
-_rg_unlock_dbg(struct dlm_lksb *p, char *file, int line)
+_rg_unlock_dbg(struct dlm_lksb *p, const char *file, int line)
{
dbg_printf("rg_unlock() @ %s:%d\n", file, line);
return _rg_unlock(p);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-23 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 14:08 cluster: STABLE3 - rgmanager: Fix --debug build Lon Hohberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).