mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
Refactoring conditional directives that break parts of statements.
This commit is contained in:
parent
239dec9a87
commit
1e32eaf4aa
@ -165,18 +165,20 @@ grub_cpio_mount (grub_disk_t disk)
|
||||
{
|
||||
struct head hd;
|
||||
struct grub_cpio_data *data;
|
||||
int test;
|
||||
|
||||
if (grub_disk_read (disk, 0, 0, sizeof (hd), &hd))
|
||||
goto fail;
|
||||
|
||||
#ifndef MODE_USTAR
|
||||
grub_cpio_convert_header (&hd);
|
||||
if (hd.magic != MAGIC_BCPIO)
|
||||
test = hd.magic != MAGIC_BCPIO;
|
||||
#else
|
||||
if (grub_memcmp (hd.magic, MAGIC_USTAR,
|
||||
sizeof (MAGIC_USTAR) - 1))
|
||||
test = grub_memcmp (hd.magic, MAGIC_USTAR,
|
||||
sizeof (MAGIC_USTAR) - 1);
|
||||
#endif
|
||||
goto fail;
|
||||
if (test)
|
||||
goto fail;
|
||||
|
||||
data = (struct grub_cpio_data *) grub_malloc (sizeof (*data));
|
||||
if (!data)
|
||||
|
Loading…
Reference in New Issue
Block a user