mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
correct signedness of 4th arguments of map_partition_{read|write}
This commit is contained in:
parent
360b17f8cc
commit
ffe511becc
@ -154,7 +154,8 @@ static int get_driver(map_t *map, int partition, char* appledriver)
|
|||||||
return -1;
|
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)
|
if (ret == -1)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: cannot read driver (read())\n");
|
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 */
|
/* 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);
|
free(code);
|
||||||
|
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user