* include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
for cheat_fd. * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_* functions. (grub_cryptodisk_cheat_insert): Likewise. (grub_cryptodisk_close): Likewise.
This commit is contained in:
parent
e85a5d5ca6
commit
a47a78be88
3 changed files with 19 additions and 7 deletions
|
@ -22,6 +22,9 @@
|
|||
#include <grub/disk.h>
|
||||
#include <grub/crypto.h>
|
||||
#include <grub/list.h>
|
||||
#ifdef GRUB_UTIL
|
||||
#include <grub/emu/hostdisk.h>
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
@ -85,7 +88,7 @@ struct grub_cryptodisk
|
|||
grub_size_t keysize;
|
||||
#ifdef GRUB_UTIL
|
||||
char *cheat;
|
||||
int cheat_fd;
|
||||
grub_util_fd_t cheat_fd;
|
||||
#endif
|
||||
const char *modname;
|
||||
int log_sector_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue