Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Pass stricter build.
details: https://anonhg.NetBSD.org/src/rev/bbe822d2051d
branches: trunk
changeset: 332875:bbe822d2051d
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Oct 11 06:18:29 2014 +0000
description:
Pass stricter build.
diffstat:
usr.bin/config/sem.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r 7c72e7e2d177 -r bbe822d2051d usr.bin/config/sem.c
--- a/usr.bin/config/sem.c Sat Oct 11 06:07:48 2014 +0000
+++ b/usr.bin/config/sem.c Sat Oct 11 06:18:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.56 2014/10/11 06:07:20 uebayasi Exp $ */
+/* $NetBSD: sem.c,v 1.57 2014/10/11 06:18:29 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -128,7 +128,7 @@
/* Name of include file just ended (set in scan.l) */
extern const char *lastfile;
-struct attr *
+static struct attr *
finddep(struct attr *a, const char *name)
{
struct attrlist *al;
@@ -145,7 +145,6 @@
mergedeps(struct devbase *dev, const char *name)
{
struct attr *a, *newa;
- struct attrlist *newal;
a = refattr(dev->d_name);
@@ -166,7 +165,7 @@
devattr = refattr(dev->d_name);
if (devattr->a_devclass)
- panic("%s: dev %s is devclass!", devattr->a_name);
+ panic("%s: dev %s is devclass!", __func__, devattr->a_name);
/*
* For each interface attribute this device refers to, add this
@@ -456,7 +455,6 @@
{
struct loclist *ll;
struct attrlist *al;
- struct attr *a;
if (dev == &errdev)
goto bad;
@@ -527,8 +525,6 @@
* device has two classes).
*/
for (al = attrs; al != NULL; al = al->al_next) {
- a = al->al_this;
-
/*
* Implicit attribute definition for device dependencies.
*/
Home |
Main Index |
Thread Index |
Old Index