[Cluster-devel] cluster/fence/agents/xvm simple_auth.c
cfeist at sourceware.org
cfeist at sourceware.org
Mon Nov 13 22:16:54 UTC 2006
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: cfeist at sourceware.org 2006-11-13 22:16:53
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&r1=1.2&r2=1.3
--- cluster/fence/agents/xvm/simple_auth.c 2006/11/13 16:13:50 1.2
+++ cluster/fence/agents/xvm/simple_auth.c 2006/11/13 22:16:53 1.3
@@ -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;
More information about the Cluster-devel
mailing list