Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config ANSIfy the output of config(8).



details:   https://anonhg.NetBSD.org/src/rev/7fd7e7e62e87
branches:  trunk
changeset: 515660:7fd7e7e62e87
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 01 04:22:00 2001 +0000

description:
ANSIfy the output of config(8).

diffstat:

 usr.sbin/config/mkioconf.c |  4 ++--
 usr.sbin/config/mkswap.c   |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r f9d18c25b7d2 -r 7fd7e7e62e87 usr.sbin/config/mkioconf.c
--- a/usr.sbin/config/mkioconf.c        Mon Oct 01 03:02:34 2001 +0000
+++ b/usr.sbin/config/mkioconf.c        Mon Oct 01 04:22:00 2001 +0000
@@ -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 @@
        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 -r f9d18c25b7d2 -r 7fd7e7e62e87 usr.sbin/config/mkswap.c
--- a/usr.sbin/config/mkswap.c  Mon Oct 01 03:02:34 2001 +0000
+++ b/usr.sbin/config/mkswap.c  Mon Oct 01 04:22:00 2001 +0000
@@ -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 @@
                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)) {



Home | Main Index | Thread Index | Old Index