public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* rgmanager: master - rgmanager: Fix daemon_init related warnings
@ 2009-06-22 16:54 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-22 16:54 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/rgmanager.git?p=rgmanager.git;a=commitdiff;h=32605773b7c5f40f802d3b8ebc5887b8952a2305
Commit:        32605773b7c5f40f802d3b8ebc5887b8952a2305
Parent:        5255b217d9d58c17dfb9121588150787a41a8491
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Fri May 29 10:15:21 2009 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Mon Jun 22 12:49:27 2009 -0400

rgmanager: Fix daemon_init related warnings

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/include/daemon_init.h    |    9 +++++++++
 rgmanager/src/clulib/daemon_init.c |    8 +-------
 rgmanager/src/daemons/main.c       |    2 +-
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/rgmanager/include/daemon_init.h b/rgmanager/include/daemon_init.h
new file mode 100644
index 0000000..0252386
--- /dev/null
+++ b/rgmanager/include/daemon_init.h
@@ -0,0 +1,9 @@
+#ifndef _DAEMON_INIT_H
+#define _DAEMON_INIT_H
+
+int check_pid_valid(pid_t pid, char *prog);
+int check_process_running(char *prog, pid_t * pid);
+void daemon_init(char *prog);
+void daemon_cleanup(void);
+
+#endif
diff --git a/rgmanager/src/clulib/daemon_init.c b/rgmanager/src/clulib/daemon_init.c
index bbf7d48..e9adeed 100644
--- a/rgmanager/src/clulib/daemon_init.c
+++ b/rgmanager/src/clulib/daemon_init.c
@@ -25,13 +25,7 @@
 #include <sys/errno.h>
 #include <libgen.h>
 #include <signal.h>
-
-/*
- * This should ultimately go in a header file.
- */
-void daemon_init(char *prog);
-int check_pid_valid(pid_t pid, char *prog);
-int check_process_running(char *prog, pid_t * pid);
+#include <daemon_init.h>
 
 /*
  * Local prototypes.
diff --git a/rgmanager/src/daemons/main.c b/rgmanager/src/daemons/main.c
index 7ae7020..e4800cb 100644
--- a/rgmanager/src/daemons/main.c
+++ b/rgmanager/src/daemons/main.c
@@ -18,6 +18,7 @@
 #include <cman-private.h>
 #include <event.h>
 #include <members.h>
+#include <daemon_init.h>
 
 #define L_SHUTDOWN (1<<2)
 #define L_SYS (1<<1)
@@ -31,7 +32,6 @@ void set_transition_throttling(int);
 
 void node_event(int, int, int, int);
 void node_event_q(int, int, int, int);
-int daemon_init(char *);
 void daemon_cleanup(void);
 void kill_resource_groups(void);
 void flag_shutdown(int sig);


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

only message in thread, other threads:[~2009-06-22 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 16:54 rgmanager: master - rgmanager: Fix daemon_init related warnings 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).