[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-96-g1c340e0



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]