From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/ccs/lib libccs.c
Date: 26 Oct 2007 19:18:10 -0000 [thread overview]
Message-ID: <20071026191810.27637.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rmccabe at sourceware.org 2007-10-26 19:18:10
Modified files:
ccs/lib : libccs.c
Log message:
Keep gcc from reporting a bogus warning when compiling with -Wformat=2
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/libccs.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
--- cluster/ccs/lib/libccs.c 2007/10/11 05:10:49 1.12
+++ cluster/ccs/lib/libccs.c 2007/10/26 19:18:10 1.13
@@ -702,7 +702,6 @@
** Try to match against each clusternode in cluster.conf.
*/
for (i = 1 ; ; i++) {
- const char *pathstr = NULL;
char canonical_name[128];
unsigned int altcnt;
@@ -717,7 +716,9 @@
char cur_node[128];
if (altcnt != 0) {
- ret = snprintf(path, sizeof(path), pathstr, i, altcnt);
+ ret = snprintf(path, sizeof(path),
+ "/cluster/clusternodes/clusternode[%u]/altname[%u]/@name",
+ i, altcnt);
if (ret < 0 || (size_t) ret >= sizeof(path))
continue;
}
@@ -788,8 +789,7 @@
free(str);
- /* Try any altnames */
- pathstr = "/cluster/clusternodes/clusternode[%u]/altname[%u]/@name";
+ /* Now try any altnames */
}
}
next reply other threads:[~2007-10-26 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 19:18 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-21 22:31 [Cluster-devel] cluster/ccs/lib libccs.c jbrassow
2007-11-14 16:51 lhh
2007-10-11 5:11 rmccabe
2007-10-11 5:10 rmccabe
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=20071026191810.27637.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.