diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2001-11-10 20:46:08 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2001-11-10 20:46:08 +0000 |
commit | 165a11b30c840e2f63b49756bc970be58b342be7 (patch) | |
tree | b4e77e9ae35f0ec7c1f32748778bbebdc8a4e9b1 /usr.sbin | |
parent | c224acfbabfc3c399b5b0866f2e1f7cd75987c54 (diff) |
Move extraloc to data segment. This fixes save of new locators for cloned devices. -moj ok @deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |