Module Name: src
Committed By: uebayasi
Date: Fri Oct 10 08:14:48 UTC 2014
Modified Files:
src/usr.bin/config: sem.c
Log Message:
Implicitly define attribute for device.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.bin/config/sem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/sem.c
diff -u src/usr.bin/config/sem.c:1.52 src/usr.bin/config/sem.c:1.53
--- src/usr.bin/config/sem.c:1.52 Fri Oct 10 07:48:50 2014
+++ src/usr.bin/config/sem.c Fri Oct 10 08:14:47 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.52 2014/10/10 07:48:50 uebayasi Exp $ */
+/* $NetBSD: sem.c,v 1.53 2014/10/10 08:14:47 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -442,6 +442,11 @@ defdev(struct devbase *dev, struct locli
dev->d_classattr = NULL; /* for now */
/*
+ * Implicit attribute definition for device.
+ */
+ refattr(dev->d_name);
+
+ /*
* For each interface attribute this device refers to, add this
* device to its reference list. This makes, e.g., finding all
* "scsi"s easier.