ANSIfy the output of config(8).
This commit is contained in:
parent
e018ea931c
commit
c6d44b5eb4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mkioconf.c,v 1.55 2001/01/18 07:09:47 thorpej Exp $ */
|
||||
/* $NetBSD: mkioconf.c,v 1.56 2001/10/01 04:22:00 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -389,7 +389,7 @@ emitpseudo(FILE *fp)
|
||||
if (fputs("\n/* pseudo-devices */\n", fp) < 0)
|
||||
return (1);
|
||||
for (i = allpseudo; i != NULL; i = i->i_next)
|
||||
if (fprintf(fp, "extern void %sattach __P((int));\n",
|
||||
if (fprintf(fp, "void %sattach(int);\n",
|
||||
i->i_base->d_name) < 0)
|
||||
return (1);
|
||||
if (fputs("\nstruct pdevinit pdevinit[] = {\n", fp) < 0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mkswap.c,v 1.10 2000/10/02 19:48:35 cgd Exp $ */
|
||||
/* $NetBSD: mkswap.c,v 1.11 2001/10/01 04:22:00 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -137,10 +137,10 @@ mkoneswap(struct config *cf)
|
||||
strcpy(specinfo, "NULL");
|
||||
else {
|
||||
sprintf(specinfo, "%s_mountroot", cf->cf_fstype);
|
||||
if (fprintf(fp, "extern int %s __P((void));\n", specinfo) < 0)
|
||||
if (fprintf(fp, "int %s(void);\n", specinfo) < 0)
|
||||
goto wrerror;
|
||||
}
|
||||
if (fprintf(fp, "int (*mountroot) __P((void)) = %s;\n", specinfo) < 0)
|
||||
if (fprintf(fp, "int (*mountroot)(void) = %s;\n", specinfo) < 0)
|
||||
goto wrerror;
|
||||
|
||||
if (fclose(fp)) {
|
||||
|
Loading…
Reference in New Issue
Block a user