From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-96-g1c340e0
Date: 24 Mar 2008 15:54:36 -0000 [thread overview]
Message-ID: <20080324155436.5615.qmail@sourceware.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".
http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=1c340e0e7e1a6c0b7402db2ee22e240e25d28728
The branch, master has been updated
via 1c340e0e7e1a6c0b7402db2ee22e240e25d28728 (commit)
from b83c377a297a79e45cb7a268bdad2680f81ef4df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1c340e0e7e1a6c0b7402db2ee22e240e25d28728
Author: Lon Hohberger <lhh@redhat.com>
Date: Mon Mar 24 11:41:00 2008 -0400
[cman/qdisk] Fix type pun errors in proc.c
-----------------------------------------------------------------------
Summary of changes:
cman/qdisk/proc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/cman/qdisk/proc.c b/cman/qdisk/proc.c
index f27faa2..5623e7e 100644
--- a/cman/qdisk/proc.c
+++ b/cman/qdisk/proc.c
@@ -146,11 +146,13 @@ state_str(disk_node_state_t s)
void
print_status_block(status_block_t *sb)
{
+ time_t timestamp = (time_t)sb->ps_timestamp;
+
if (sb->ps_state == S_NONE)
return;
printf("Status block for node %d\n", sb->ps_nodeid);
printf("\tLast updated by node %d\n", sb->ps_updatenode);
- printf("\tLast updated on %s", ctime((time_t *)&sb->ps_timestamp));
+ printf("\tLast updated on %s", ctime((time_t *)×tamp));
printf("\tState: %s\n", state_str(sb->ps_state));
printf("\tFlags: %04x\n", sb->ps_flags);
printf("\tScore: %d/%d\n", sb->ps_score, sb->ps_scoremax);
@@ -200,13 +202,13 @@ print_qdisk_info(struct devnode *dn)
{
quorum_header_t *qh = (quorum_header_t *)dn->filter;
struct devpath *dp;
+ time_t timestamp = (time_t)qh->qh_timestamp;
for (dp = dn->devpath; dp; dp = dp->next)
printf("%s:\n", dp->path);
printf("\tMagic: %08x\n", qh->qh_magic);
printf("\tLabel: %s\n", qh->qh_cluster);
- printf("\tCreated: %s",
- ctime((time_t *)&(qh->qh_timestamp)));
+ printf("\tCreated: %s", ctime(×tamp));
printf("\tHost: %s\n", qh->qh_updatehost);
printf("\tKernel Sector Size: %d\n", qh->qh_kernsz);
if (qh->qh_version == VERSION_MAGIC_V2) {
hooks/post-receive
--
Cluster Project
reply other threads:[~2008-03-24 15: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=20080324155436.5615.qmail@sourceware.org \
--to=lhh@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 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 NNTP newsgroup(s).