public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: fence: master - fenced: avoid static warnings Date: Tue, 23 Jun 2009 07:21:00 -0000 [thread overview] Message-ID: <20090623072124.5C1E5120366@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=f393b86e796cb6640283fafabed17bd058932850 Commit: f393b86e796cb6640283fafabed17bd058932850 Parent: e4ad6bca054e6fb80441ba2156d8b7bb5b3bb20a Author: David Teigland <teigland@redhat.com> AuthorDate: Mon May 11 10:09:56 2009 -0500 Committer: Fabio M. Di Nitto <fdinitto@redhat.com> CommitterDate: Tue Jun 23 09:09:55 2009 +0200 fenced: avoid static warnings By using a variable "default" string instead of a static one. Signed-off-by: David Teigland <teigland@redhat.com> --- fence/fenced/main.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fence/fenced/main.c b/fence/fenced/main.c index dbbb6b6..eeefc4c 100644 --- a/fence/fenced/main.c +++ b/fence/fenced/main.c @@ -404,9 +404,12 @@ static void query_domain_nodes(int f, int option, int max) static void process_connection(int ci) { struct fenced_header h; + char default_name[8]; char *extra = NULL; int rv, extra_len; + strcpy(default_name, "default"); + rv = do_read(client[ci].fd, &h, sizeof(h)); if (rv < 0) { log_debug("connection %d read error %d", ci, rv); @@ -441,13 +444,13 @@ static void process_connection(int ci) switch (h.command) { case FENCED_CMD_JOIN: - do_join("default"); + do_join(default_name); break; case FENCED_CMD_LEAVE: - do_leave("default"); + do_leave(default_name); break; case FENCED_CMD_EXTERNAL: - do_external("default", extra, extra_len); + do_external(default_name, extra, extra_len); break; case FENCED_CMD_DUMP_DEBUG: case FENCED_CMD_NODE_INFO:
reply other threads:[~2009-06-23 7:21 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=20090623072124.5C1E5120366@lists.fedorahosted.org \ --to=fabbione@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).