cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-96-g1c340e0
@ 2008-03-24 15:54 lhh
  0 siblings, 0 replies; only message in thread
From: lhh @ 2008-03-24 15:54 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 *)&timestamp));
 	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(&timestamp));
 	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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-24 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 15:54 [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-96-g1c340e0 lhh

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).