summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2015-12-24 14:12:43 +0000
committerkrw <krw@openbsd.org>2015-12-24 14:12:43 +0000
commitb3eeebd8b3f396838833025f1160f7a1b58beff6 (patch)
tree5fb5dad2ca5e4dd569378f7b2cf40a5886418e38 /usr.sbin/installboot
parentrevert check_tcp rev 1.41 by yasuoka@ (diff)
downloadwireguard-openbsd-b3eeebd8b3f396838833025f1160f7a1b58beff6.tar.xz
wireguard-openbsd-b3eeebd8b3f396838833025f1160f7a1b58beff6.zip
Add prototype for gpt_chk_mbr() to i386_installboot.c. Add 'static' to
declarations of gpt_chk_mbr() to match prototypes in efidev.c and softraid.c.
Diffstat (limited to 'usr.sbin/installboot')
-rw-r--r--usr.sbin/installboot/i386_installboot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/installboot/i386_installboot.c b/usr.sbin/installboot/i386_installboot.c
index 8d1cf1302e5..933e25a4df7 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.22 2015/12/20 18:04:34 rpe Exp $ */
+/* $OpenBSD: i386_installboot.c,v 1.23 2015/12/24 14:12:43 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -90,6 +90,7 @@ static void devread(int, void *, daddr_t, size_t, char *);
static u_int findopenbsd(int, struct disklabel *);
static int getbootparams(char *, int, struct disklabel *);
static char *loadproto(char *, long *);
+static int gpt_chk_mbr(struct dos_partition *, struct disklabel *);
/*
* Read information about /boot's inode and filesystem parameters, then
@@ -454,7 +455,7 @@ again:
*
* NOTE: MS always uses a size of UINT32_MAX for the EFI partition!**
*/
-int
+static int
gpt_chk_mbr(struct dos_partition *dp, struct disklabel *lp)
{
struct dos_partition *dp2;