summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-10-19 21:21:22 +0000
committerbrooks <brooks@FreeBSD.org>2005-10-19 21:21:22 +0000
commit046511ce880e689c3741ada06f9cfaaa33b7bda0 (patch)
treead7848efd5d514e3b159b9ff9e8e3100c1238a08 /sbin/devd
parenta3d0544135a44cbbcffb7cf29d3c4e4fd399def5 (diff)
downloadFreeBSD-src-046511ce880e689c3741ada06f9cfaaa33b7bda0.zip
FreeBSD-src-046511ce880e689c3741ada06f9cfaaa33b7bda0.tar.gz
Make devd WARNS=4 clean and bump WARNS accordingly. This will insure
that future variable shadowing bugs don't compile. Reviewed by: imp Compiled on: alpha i386 sparc64
Diffstat (limited to 'sbin/devd')
-rw-r--r--sbin/devd/Makefile2
-rw-r--r--sbin/devd/devd.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/devd/Makefile b/sbin/devd/Makefile
index 469e1e2..3514b1b 100644
--- a/sbin/devd/Makefile
+++ b/sbin/devd/Makefile
@@ -3,7 +3,7 @@
PROG_CXX=devd
SRCS= devd.cc token.l parse.y y.tab.h
MAN= devd.8 devd.conf.5
-WARNS?= 1
+WARNS?= 4
NO_SHARED?=YES
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index c9f6a86..f0578b4 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -194,7 +194,7 @@ match::do_match(config &c)
#include <net/if.h>
#include <net/if_media.h>
-media::media(config &c, const char *var, const char *type)
+media::media(config &, const char *var, const char *type)
: _var(var), _type(-1)
{
static struct ifmedia_description media_types[] = {
@@ -585,7 +585,7 @@ config::find_and_execute(char type)
{
vector<event_proc *> *l;
vector<event_proc *>::const_iterator i;
- char *s;
+ const char *s;
switch (type) {
default:
OpenPOWER on IntegriCloud