[Pvfs2-cvs] commit by pw in pvfs2/test/kernel/linux-2.6:
aio_test_append.c aio_test_sparse.c
CVS commit program
cvs at parl.clemson.edu
Thu Oct 12 15:14:47 EDT 2006
Update of /projects/cvsroot/pvfs2/test/kernel/linux-2.6
In directory parlweb1:/tmp/cvs-serv17299/test/kernel/linux-2.6
Modified Files:
aio_test_append.c aio_test_sparse.c
Log Message:
compiler warnings
Index: aio_test_append.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/kernel/linux-2.6/aio_test_append.c,v
diff -u -p -p -u -r1.2 -r1.3
--- aio_test_append.c 28 Sep 2006 00:34:25 -0000 1.2
+++ aio_test_append.c 12 Oct 2006 19:14:47 -0000 1.3
@@ -33,7 +33,7 @@ static int check_zero(char *buf, int siz
while (size > 0) {
if (*iptr++ != 0) {
fprintf(stderr, "non zero buffer at buf[%d]\n",
- ((char *)iptr) - buf);
+ (int)(((char *)iptr) - buf));
return 1;
}
size -= 4;
Index: aio_test_sparse.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/kernel/linux-2.6/aio_test_sparse.c,v
diff -u -p -p -u -r1.2 -r1.3
--- aio_test_sparse.c 28 Sep 2006 00:34:25 -0000 1.2
+++ aio_test_sparse.c 12 Oct 2006 19:14:47 -0000 1.3
@@ -44,7 +44,7 @@ static char *check_zero(char *buf, int s
while (size > 0) {
if (*buf != 0) {
fprintf(stderr, "non zero buffer at buf[%d] => 0x%02x,%02x,%02x,%02x\n",
- buf - p, (unsigned int)buf[0],
+ (int)(buf - p), (unsigned int)buf[0],
size > 1 ? (unsigned int)buf[1] : 0,
size > 2 ? (unsigned int)buf[2] : 0,
size > 3 ? (unsigned int)buf[3] : 0);
@@ -84,7 +84,7 @@ static int read_sparse(char *filename, i
if (r > 0) {
if ((badbuf = check_zero(buf, sizeof(buf)))) {
fprintf(stderr, "non-zero read at offset %d\n",
- offset + badbuf - buf);
+ (int)(offset + badbuf - buf));
kill(getppid(), SIGTERM);
exit(10);
}
More information about the Pvfs2-cvs
mailing list