Module Name: src
Committed By: pooka
Date: Wed Feb 3 21:32:27 UTC 2010
Modified Files:
src/usr.bin/config: mkioconf.c
Log Message:
... aaand make the emit-order slightly more sensible for ioconf.c to
actually work again.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/config/mkioconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/mkioconf.c
diff -u src/usr.bin/config/mkioconf.c:1.15 src/usr.bin/config/mkioconf.c:1.16
--- src/usr.bin/config/mkioconf.c:1.15 Wed Feb 3 21:00:49 2010
+++ src/usr.bin/config/mkioconf.c Wed Feb 3 21:32:27 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: mkioconf.c,v 1.15 2010/02/03 21:00:49 pooka Exp $ */
+/* $NetBSD: mkioconf.c,v 1.16 2010/02/03 21:32:27 pooka Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -89,6 +89,13 @@
return (1);
}
+ emithdr(fp);
+ emitcfdrivers(fp);
+ emitexterns(fp);
+ emitloc(fp);
+ emitparents(fp);
+ emitcfdata(fp);
+
if (ioconfname == NULL) {
emitcfattachinit(fp);
emitroots(fp);
@@ -96,12 +103,6 @@
if (!do_devsw)
emitname2blk(fp);
}
- emithdr(fp);
- emitcfdrivers(fp);
- emitexterns(fp);
- emitloc(fp);
- emitparents(fp);
- emitcfdata(fp);
fflush(fp);
if (ferror(fp)) {