mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump/scsi: reuse zipl magic string definitions from boot_defs.h
To remove duplication of definitions. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
647e8b5c37
commit
dc49b4fcf0
@@ -34,7 +34,7 @@ static struct {
|
||||
*/
|
||||
static int check_zipl_magic(void *buf)
|
||||
{
|
||||
if (memcmp(buf, "zIPL", 4))
|
||||
if (memcmp(buf, ZIPL_MAGIC, ZIPL_MAGIC_SIZE))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user