public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL4 - qdisk: Fix build errors with -Werror
@ 2008-09-17  6:29 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2008-09-17  6:29 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f1bd71ba88937e169bada8a23f23da104ba971bf
Commit:        f1bd71ba88937e169bada8a23f23da104ba971bf
Parent:        84ad017e8091cda3e538ab439ec4938e640fe22d
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Tue Sep 16 13:08:23 2008 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Tue Sep 16 13:08:23 2008 -0400

qdisk: Fix build errors with -Werror

---
 cman/qdisk/main.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c
index a66402b..7b0a6ce 100644
--- a/cman/qdisk/main.c
+++ b/cman/qdisk/main.c
@@ -1481,10 +1481,8 @@ main(int argc, char **argv)
 	memset(&me, 0, sizeof(me));
 	while (cman_get_node(ch, CMAN_NODEID_US, &me) < 0) {
 		if (!foreground && !forked) {
-			if (daemon_init(argv[0]) < 0)
-				return -1;
-			else
-				forked = 1;
+			daemon_init(argv[0]);
+			forked = 1;
 		}
 		sleep(5);
 	}
@@ -1545,8 +1543,7 @@ main(int argc, char **argv)
 	}
 
 	if (!foreground && !forked) {
-                if (daemon_init(argv[0]) < 0)
-			return -1;
+                daemon_init(argv[0]);
 	}
 	
 	set_priority(ctx.qc_sched, ctx.qc_sched_prio);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-16 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17  6:29 RHEL4 - qdisk: Fix build errors with -Werror 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).