diff options
| author | 2018-09-01 16:55:29 +0000 | |
|---|---|---|
| committer | 2018-09-01 16:55:29 +0000 | |
| commit | f917af54108a33803c675dec26bd7a3217f5a56f (patch) | |
| tree | e0383f63f7de77ed924a8b640c751f68fe5ef94e /usr.sbin/installboot/bootstrap.c | |
| parent | Tweak comment. (diff) | |
| download | wireguard-openbsd-f917af54108a33803c675dec26bd7a3217f5a56f.tar.xz wireguard-openbsd-f917af54108a33803c675dec26bd7a3217f5a56f.zip | |
Remove 'overlap_allowance' parameter from bootstrap().
It was added to support Vax. Vax is dead Jim.
ok deraadt@
Diffstat (limited to 'usr.sbin/installboot/bootstrap.c')
| -rw-r--r-- | usr.sbin/installboot/bootstrap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/installboot/bootstrap.c b/usr.sbin/installboot/bootstrap.c index af2a4812069..0df2145b48b 100644 --- a/usr.sbin/installboot/bootstrap.c +++ b/usr.sbin/installboot/bootstrap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootstrap.c,v 1.9 2015/12/28 23:00:29 krw Exp $ */ +/* $OpenBSD: bootstrap.c,v 1.10 2018/09/01 16:55:29 krw Exp $ */ /* * Copyright (c) 2013 Joel Sing <jsing@openbsd.org> @@ -32,7 +32,7 @@ #include "installboot.h" void -bootstrap(int devfd, char *dev, char *bootfile, unsigned int overlap_allowance) +bootstrap(int devfd, char *dev, char *bootfile) { struct disklabel dl; struct disklabel *lp; @@ -92,7 +92,7 @@ bootstrap(int devfd, char *dev, char *bootfile, unsigned int overlap_allowance) continue; if (DL_GETPSIZE(pp) == 0) continue; - if ((u_int64_t)bootsec <= DL_GETPOFFSET(pp) + overlap_allowance) + if ((u_int64_t)bootsec <= DL_GETPOFFSET(pp)) continue; switch (pp->p_fstype) { case FS_BOOT: |
