cluster: STABLE3 - libdlm: fix warning
David Teigland
teigland@fedoraproject.org
Thu Mar 12 16:37:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=862c80dd812ef17a8e8426bd638eb33ed5c4f084
Commit: 862c80dd812ef17a8e8426bd638eb33ed5c4f084
Parent: 0b26419b4b0af310fb084e872143d988199cd648
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Mar 12 11:32:52 2009 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Mar 12 11:33:50 2009 -0500
libdlm: fix warning
cc1: warnings being treated as errors
/root/foo/cluster-3.0.0.beta1/dlm/libdlm/libdlm.c: In function
???dlm_recv_thread???:
/root/foo/cluster-3.0.0.beta1/dlm/libdlm/libdlm.c:1181: error: no return
statement in function returning non-void
Signed-off-by: David Teigland <teigland@redhat.com>
---
dlm/libdlm/libdlm.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlm/libdlm/libdlm.c b/dlm/libdlm/libdlm.c
index af203d4..c925233 100644
--- a/dlm/libdlm/libdlm.c
+++ b/dlm/libdlm/libdlm.c
@@ -1174,10 +1174,12 @@ int dlm_ls_get_fd(dlm_lshandle_t lockspace)
#ifdef _REENTRANT
static void *dlm_recv_thread(void *lsinfo)
{
- struct dlm_ls_info *lsi = lsinfo;
+ struct dlm_ls_info *lsi = lsinfo;
- for (;;)
- do_dlm_dispatch(lsi->fd);
+ for (;;)
+ do_dlm_dispatch(lsi->fd);
+
+ return NULL;
}
/* Multi-threaded callers normally use this */
More information about the Cluster-cvs
mailing list