diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-11 07:13:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-11 07:13:59 +0000 |
commit | 75ec0c20f11ed4673f7baa51409b327216f8f94d (patch) | |
tree | cc669fac0b97cbb539291345fdc462b683d0b072 /usr.sbin | |
parent | b5ee909910bbd69d675347d18b3346cf03017cb2 (diff) |
Change device locators type from int to long, for the sake of 64-bit ports
without proper device trees.
Be sure to build and install config(8) and rerun it before attempting to build
a kernel.
ok kettenis@ deraadt@ jasper@ visa@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index 7dc2ad2ca4d..bebb335612b 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkioconf.c,v 1.33 2015/01/16 06:40:16 deraadt Exp $ */ +/* $OpenBSD: mkioconf.c,v 1.34 2015/09/11 07:13:58 miod Exp $ */ /* $NetBSD: mkioconf.c,v 1.41 1996/11/11 14:18:49 mycroft Exp $ */ /* @@ -174,7 +174,7 @@ emitloc(FILE *fp) int i; if (fprintf(fp, "\n/* locators */\n\ -static int loc[%d] = {", locators.used) < 0) +static long loc[%d] = {", locators.used) < 0) return (1); for (i = 0; i < locators.used; i++) if (fprintf(fp, "%s%s,", SEP(i, 8), locators.vec[i]) < 0) @@ -184,7 +184,7 @@ static int loc[%d] = {", locators.used) < 0) return (fprintf(fp, "\n#ifndef MAXEXTRALOC\n\ #define MAXEXTRALOC 32\n\ #endif\n\ -int extraloc[MAXEXTRALOC] = { -1 };\n\ +long extraloc[MAXEXTRALOC] = { -1 };\n\ int nextraloc = MAXEXTRALOC;\n\ int uextraloc = 0;\n") < 0); } |