From 165a11b30c840e2f63b49756bc970be58b342be7 Mon Sep 17 00:00:00 2001 From: Mats O Jansson Date: Sat, 10 Nov 2001 20:46:08 +0000 Subject: Move extraloc to data segment. This fixes save of new locators for cloned devices. -moj ok @deraadt --- usr.sbin/config/mkioconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index 1547bfc2370..890deac0333 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkioconf.c,v 1.16 2001/02/04 20:42:12 maja Exp $ */ +/* $OpenBSD: mkioconf.c,v 1.17 2001/11/10 20:46:07 maja Exp $ */ /* $NetBSD: mkioconf.c,v 1.41 1996/11/11 14:18:49 mycroft Exp $ */ /* @@ -192,7 +192,7 @@ static int loc[%d] = {", locators.used) < 0) return (fprintf(fp, "\n#ifndef MAXEXTRALOC\n\ #define MAXEXTRALOC 32\n\ #endif\n\ -int extraloc[MAXEXTRALOC];\n\ +int extraloc[MAXEXTRALOC] = { -1 };\n\ int nextraloc = MAXEXTRALOC;\n\ int uextraloc = 0;\n") < 0); } -- cgit v1.2.3