xfstests: fix a few build warnings

This patch fixes a few build warnings.  I have built the code using
i386, x86_64, and ia64 architectures and each has ends up with
complaints of one sort or anther.  This gets rid of all of them
*except* those reported by files under the "ltp" (Linux Test
Project) sub-tree.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
Alex Elder
2011-03-04 19:37:31 +00:00
parent 4f8a4bcd1a
commit 19becaacd6
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -453,7 +453,7 @@ int
lio_random_methods(long curr_mask)
{
int mask=0;
long random_bit();
long random_bit(long);
/* remove random select, io type, and wait method bits from curr_mask */
mask = curr_mask & (~(LIO_IO_TYPES | LIO_WAIT_TYPES | LIO_RANDOM));
+2 -1
View File
@@ -227,7 +227,8 @@ void aiodio_sparse(char *filename, int align, int writesize, int startoffset, in
unsigned char *badbuf;
if (debug)
fprintf(stderr, "seek to %ld and read %d\n", offset, writesize);
fprintf(stderr, "seek to %lld and read %d\n",
(long long) offset, writesize);
lseek(fd, offset, SEEK_SET);
if (read(fd, bufptr, writesize) < writesize) {
fprintf(stderr, "short read() at offset %lld\n",
+2 -1
View File
@@ -59,7 +59,8 @@ int main(int argc, char *argv[])
perror("mmap");
exit(1);
}
printf("pwrite %Ld bytes from %Ld to %Ld\n", amount, from, to);
printf("pwrite %Ld bytes from %Ld to %Ld\n",
(long long) amount, (long long) from, (long long) to);
ret = pwrite(fd, (char *)mapped_mem + from, amount, to);
if (ret != amount) {
+3 -1
View File
@@ -136,7 +136,9 @@ again:
}
if (bmapx[x].bmv_oflags & 1) {
fprintf(stderr, "FOUND ONE %lld %lld %x\n",
bmapx[x].bmv_offset, bmapx[x].bmv_length,bmapx[x].bmv_oflags);
(long long) bmapx[x].bmv_offset,
(long long) bmapx[x].bmv_length,
bmapx[x].bmv_oflags);
foundone = 1;
foundany = 1;
}
+2
View File
@@ -16,6 +16,8 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <sys/stat.h>
#include <xfs/xfs.h>
#include <xfs/jdm.h>