From c6d44b5eb4a524850e5db924b6ac5a2f12dbf0be Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 1 Oct 2001 04:22:00 +0000 Subject: [PATCH] ANSIfy the output of config(8). --- usr.sbin/config/mkioconf.c | 4 ++-- usr.sbin/config/mkswap.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index 919435bc798f..50ca1ac040d3 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -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) diff --git a/usr.sbin/config/mkswap.c b/usr.sbin/config/mkswap.c index 5cc19f74e16c..ace337906f37 100644 --- a/usr.sbin/config/mkswap.c +++ b/usr.sbin/config/mkswap.c @@ -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)) {