public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jim Meyering <meyering@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: dlm: master - fix compile failures
Date: Fri, 26 Jun 2009 08:01:00 -0000 [thread overview]
Message-ID: <20090626080051.B13CE120381@lists.fedorahosted.org> (raw)
Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=cdda56dcbb999b3ffd6dd080fa97f8dd8eefcc14
Commit: cdda56dcbb999b3ffd6dd080fa97f8dd8eefcc14
Parent: ac6d6c210989e598ef3f809ee68ac093f63ac41a
Author: Jim Meyering <meyering@redhat.com>
AuthorDate: Fri Jun 26 09:34:49 2009 +0200
Committer: Jim Meyering <meyering@redhat.com>
CommitterDate: Fri Jun 26 09:34:49 2009 +0200
fix compile failures
* dlm/tests/usertest/dlmtest2.c:
(main): Restore accidentally removed label. It's still used.
(main): Test "opt_cmd", rather than the always-true array, "cmd".
---
dlm/tests/usertest/dlmtest2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlm/tests/usertest/dlmtest2.c b/dlm/tests/usertest/dlmtest2.c
index 6160d4a..9d3afd9 100644
--- a/dlm/tests/usertest/dlmtest2.c
+++ b/dlm/tests/usertest/dlmtest2.c
@@ -120,7 +120,7 @@ static void unlockf(int i);
static int rand_int(int a, int b)
{
- return a + (int) (((float)(b - a + 1)) * random() / (RAND_MAX+1.0));
+ return a + (int) (((float)(b - a + 1)) * random() / (RAND_MAX+1.0));
}
static const char *status_str(int status)
@@ -1415,7 +1415,7 @@ int main(int argc, char *argv[])
client_add(libdlm_fd, &maxi);
- if (cmd) {
+ if (opt_cmd) {
process_command(&quit);
goto out;
}
@@ -1450,6 +1450,7 @@ int main(int argc, char *argv[])
break;
}
+ out:
if (openclose_ls) {
printf("dlm_close_lockspace\n");
@@ -1466,4 +1467,3 @@ int main(int argc, char *argv[])
return 0;
}
-
reply other threads:[~2009-06-26 8:01 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=20090626080051.B13CE120381@lists.fedorahosted.org \
--to=meyering@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: link
Be 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).