correct signedness of 4th arguments of map_partition_{read|write}

This commit is contained in:
Laurent Vivier 2007-10-09 20:48:13 +00:00
parent 360b17f8cc
commit ffe511becc

View File

@ -154,7 +154,8 @@ static int get_driver(map_t *map, int partition, char* appledriver)
return -1;
}
ret = map_partition_read(map, block * block_size, bootsize, code);
ret = map_partition_read(map, block * block_size, bootsize,
(char*)code);
if (ret == -1)
{
fprintf(stderr, "ERROR: cannot read driver (read())\n");
@ -259,7 +260,8 @@ static int put_driver(map_t *map, int partition, char* appledriver)
/* write file in partition */
ret = map_partition_write(map, block * block_size, st.st_size, code);
ret = map_partition_write(map, block * block_size, st.st_size,
(char*)code);
free(code);
if (ret == -1)