Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/config reject the duplication of the same device-ma...



details:   https://anonhg.NetBSD.org/src/rev/e3fd2d01ef4f
branches:  trunk
changeset: 542183:e3fd2d01ef4f
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu Jan 23 14:57:40 2003 +0000

description:
reject the duplication of the same device-major lines.

diffstat:

 usr.sbin/config/files.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 240b1f780a76 -r e3fd2d01ef4f usr.sbin/config/files.c
--- a/usr.sbin/config/files.c   Thu Jan 23 14:56:06 2003 +0000
+++ b/usr.sbin/config/files.c   Thu Jan 23 14:57:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: files.c,v 1.17 2003/01/23 14:55:39 gehenna Exp $       */
+/*     $NetBSD: files.c,v 1.18 2003/01/23 14:57:40 gehenna Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -356,6 +356,13 @@
                                       "block %d, char %d", dm->dm_name,
                                       dm->dm_bmajor, dm->dm_cmajor);
                                return (1);
+                       } else {
+                               xerror(dm->dm_srcfile, dm->dm_srcline,
+                                      "device-major '%s' is duplicated: "
+                                      "block %d, char %d",
+                                      dm->dm_name, dm->dm_bmajor,
+                                      dm->dm_cmajor);
+                               return (1);
                        }
                } else {
                        if (ht_insert(fixdevmtab, intern(dm->dm_name), dm)) {



Home | Main Index | Thread Index | Old Index