public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: rgmanager: master - rgmanager: Fix daemon_init related warnings Date: Mon, 22 Jun 2009 16:54:00 -0000 [thread overview] Message-ID: <20090622165342.37A1512025B@lists.fedorahosted.org> (raw) 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);
reply other threads:[~2009-06-22 16:54 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090622165342.37A1512025B@lists.fedorahosted.org \ --to=lon@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).