From mboxrd@z Thu Jan 1 00:00:00 1970 From: cfeist@sourceware.org Date: 13 Nov 2006 22:17:46 -0000 Subject: [Cluster-devel] cluster/fence/agents/xvm simple_auth.c Message-ID: <20061113221746.22082.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: cfeist at 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;