summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_disk.c4
-rw-r--r--usr.sbin/installboot/i386_installboot.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 38babce4e30..238573f7369 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.221 2015/12/24 18:03:03 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.222 2015/12/24 20:14:07 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -615,7 +615,7 @@ gpt_chk_mbr(struct dos_partition *dp, u_int64_t dsize)
if (found == 1 && efi == 1)
return (0);
- return (EINVAL);
+ return (1);
}
int
diff --git a/usr.sbin/installboot/i386_installboot.c b/usr.sbin/installboot/i386_installboot.c
index b789abc911d..ed6199a97f0 100644
--- a/usr.sbin/installboot/i386_installboot.c
+++ b/usr.sbin/installboot/i386_installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_installboot.c,v 1.24 2015/12/24 18:03:03 krw Exp $ */
+/* $OpenBSD: i386_installboot.c,v 1.25 2015/12/24 20:14:07 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -479,7 +479,7 @@ gpt_chk_mbr(struct dos_partition *dp, u_int64_t dsize)
if (found == 1 && efi == 1)
return (0);
- return (EINVAL);
+ return (1);
}
int