mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
Add missing lseek()
This commit is contained in:
parent
bcbeb89ac4
commit
e43e6e49fe
@ -18,6 +18,7 @@ int emile_second_get_param(int fd, char *kernel, char *parameters, char *initrd)
|
||||
|
||||
/* can work on an image or directly on second level file */
|
||||
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
ret = emile_first_get_param(fd, &drive, &second, &size);
|
||||
if (ret == EEMILE_UNKNOWN_FIRST)
|
||||
{
|
||||
|
@ -19,6 +19,7 @@ int emile_second_set_param(int fd, char *kernel, char *parameters, char *initrd)
|
||||
|
||||
/* can work on an image or directly on second level file */
|
||||
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
ret = emile_first_get_param(fd, &drive, &second, &size);
|
||||
if (ret == EEMILE_UNKNOWN_FIRST)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user