summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2016-06-02 06:21:10 +0000
committerjsg <jsg@openbsd.org>2016-06-02 06:21:10 +0000
commit65169f0c1c77c5cf72b7560586abefa3ca396ba3 (patch)
tree2b552a6c8d4d2dff3ab0bef886037d832aca74fd /usr.sbin/installboot
parentremove forgotten debug printfs (diff)
downloadwireguard-openbsd-65169f0c1c77c5cf72b7560586abefa3ca396ba3.tar.xz
wireguard-openbsd-65169f0c1c77c5cf72b7560586abefa3ca396ba3.zip
Rename findmbrlinux() to findmbrfat(). This function was originally
searching for a linux partition type, now it looks for a fat type. ok kettenis@
Diffstat (limited to 'usr.sbin/installboot')
-rw-r--r--usr.sbin/installboot/armv7_installboot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/installboot/armv7_installboot.c b/usr.sbin/installboot/armv7_installboot.c
index e36275473db..17fa948b90b 100644
--- a/usr.sbin/installboot/armv7_installboot.c
+++ b/usr.sbin/installboot/armv7_installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: armv7_installboot.c,v 1.1 2016/05/31 18:35:58 kettenis Exp $ */
+/* $OpenBSD: armv7_installboot.c,v 1.2 2016/06/02 06:21:10 jsg Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -54,7 +54,7 @@
#include "installboot.h"
static void write_efisystem(struct disklabel *, char);
-static int findmbrlinux(int, struct disklabel *);
+static int findmbrfat(int, struct disklabel *);
void
md_init(void)
@@ -82,7 +82,7 @@ md_installboot(int devfd, char *dev)
if (dl.d_type == 0)
warnx("disklabel type unknown");
- part = findmbrlinux(devfd, &dl);
+ part = findmbrfat(devfd, &dl);
if (part != -1) {
write_efisystem(&dl, (char)part);
return;
@@ -226,7 +226,7 @@ rmdir:
}
int
-findmbrlinux(int devfd, struct disklabel *dl)
+findmbrfat(int devfd, struct disklabel *dl)
{
struct dos_partition dp[NDOSPART];
ssize_t len;