aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-10-19 21:21:22 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-10-19 21:21:22 +0000
commit94d2d4eb042c76b832fca62e150b21429ffceb47 (patch)
treead7848efd5d514e3b159b9ff9e8e3100c1238a08 /sbin/devd
parent135c43dc52644d3fdfa5beb6caf45fd984ffc357 (diff)
Notes
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 469e1e247b97..3514b1bb95d7 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 c9f6a8673bdb..f0578b45c8a6 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: