summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-09-11 07:13:58 +0000
committermiod <miod@openbsd.org>2015-09-11 07:13:58 +0000
commitf3df70f1971d6063be7d52ac2511d1cd26c4a350 (patch)
treed3b8efd7d7a456067f7ff9958a9e2eb868dea299 /usr.sbin/config
parent- add some missing NAME entries (diff)
downloadwireguard-openbsd-f3df70f1971d6063be7d52ac2511d1cd26c4a350.tar.xz
wireguard-openbsd-f3df70f1971d6063be7d52ac2511d1cd26c4a350.zip
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/config')
-rw-r--r--usr.sbin/config/mkioconf.c6
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);
}