diff options
author | 1999-10-02 07:38:20 +0000 | |
---|---|---|
committer | 1999-10-02 07:38:20 +0000 | |
commit | b6937e7bbe11dfeeb1a1302f57351d0ecc4fa5be (patch) | |
tree | 4f6ea4cb63747a69e6bcf06a58b5a872299cef62 | |
parent | closer to the 2.6 story (diff) | |
download | wireguard-openbsd-b6937e7bbe11dfeeb1a1302f57351d0ecc4fa5be.tar.xz wireguard-openbsd-b6937e7bbe11dfeeb1a1302f57351d0ecc4fa5be.zip |
extraloc[] support; maja
-rw-r--r-- | usr.sbin/config/mkioconf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index c9e8001436a..980a7ae3f3e 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkioconf.c,v 1.14 1999/04/18 17:15:08 espie Exp $ */ +/* $OpenBSD: mkioconf.c,v 1.15 1999/10/02 07:38:20 deraadt Exp $ */ /* $NetBSD: mkioconf.c,v 1.41 1996/11/11 14:18:49 mycroft Exp $ */ /* @@ -187,7 +187,14 @@ static int loc[%d] = {", locators.used) < 0) for (i = 0; i < locators.used; i++) if (fprintf(fp, "%s%s,", SEP(i, 8), locators.vec[i]) < 0) return (1); - return (fprintf(fp, "\n};\n") < 0); + if (fprintf(fp, "\n};\n") < 0) + return(1); + return (fprintf(fp, "\n#ifndef MAXEXTRALOC\n\ +#define MAXEXTRALOC 32\n\ +#endif\n\ +int extraloc[MAXEXTRALOC];\n\ +int nextraloc = MAXEXTRALOC;\n\ +int uextraloc = 0;\n") < 0); } static int nlocnames, maxlocnames = 8; |