Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Only emit bdevsw externs for entries in the b...



details:   https://anonhg.NetBSD.org/src/rev/1b74b295aec5
branches:  trunk
changeset: 346510:1b74b295aec5
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jul 16 07:13:26 2016 +0000

description:
Only emit bdevsw externs for entries in the bdev table, rather than for
entries in the cdev table.

diffstat:

 usr.bin/config/mkdevsw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r af9b29816cb5 -r 1b74b295aec5 usr.bin/config/mkdevsw.c
--- a/usr.bin/config/mkdevsw.c  Sat Jul 16 01:59:05 2016 +0000
+++ b/usr.bin/config/mkdevsw.c  Sat Jul 16 07:13:26 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkdevsw.c,v 1.14 2015/09/03 13:53:36 uebayasi Exp $    */
+/*     $NetBSD: mkdevsw.c,v 1.15 2016/07/16 07:13:26 pgoyette Exp $    */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkdevsw.c,v 1.14 2015/09/03 13:53:36 uebayasi Exp $");
+__RCSID("$NetBSD: mkdevsw.c,v 1.15 2016/07/16 07:13:26 pgoyette Exp $");
 
 #include <stdio.h>
 #include <string.h>
@@ -131,7 +131,7 @@
        fputs("\n/* device switch table for block device */\n", fp);
 
        for (i = 0; i <= maxbdevm ; i++)
-               dentry(fp, cdevmtab, i, 'b');
+               dentry(fp, bdevmtab, i, 'b');
 
        fputs("\nconst struct bdevsw *bdevsw0[] = {\n", fp);
 



Home | Main Index | Thread Index | Old Index