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

[Cluster-devel] cluster/fence/agents/xvm simple_auth.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	cfeist sourceware org	2006-11-13 22:17:46

Modified files:
	fence/agents/xvm: simple_auth.c 

Log message:
	Fixes to prevent compile time warnings/errors in brew.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/simple_auth.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2

--- cluster/fence/agents/xvm/simple_auth.c	2006/11/13 16:14:06	1.1.2.1
+++ cluster/fence/agents/xvm/simple_auth.c	2006/11/13 22:17:45	1.1.2.2
@@ -375,7 +375,7 @@
 	char *p;
 
 	dprintf(3, "Reading in key file %s into %p (%d len)",
-		file, key, max_len);
+		file, key, (int)max_len);
 	fd = open(file, O_RDONLY);
 	if (fd < 0) {
 		return -1;
@@ -395,7 +395,7 @@
 
 		if (nread == 0) {
 			dprintf(3, "Stopped reading @ %d bytes",
-				max_len-remain);
+				(int)max_len-remain);
 			break;
 		}
 		
@@ -403,7 +403,7 @@
 		remain -= nread;
 	}
 
-	dprintf(3, "Actual key length = %d bytes", max_len-remain);
+	dprintf(3, "Actual key length = %d bytes", (int)max_len-remain);
 	close(fd);	
 	
 	return 0;


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