From 2d1e477da239e1c76295ca1444636f62f2c424e5 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 23 Oct 2009 20:19:20 +0200 Subject: [PATCH] apmd(8): Fix a warning and raise WARNS to 2. BATTTIME and BATTPERCENT are in fact int. --- usr.sbin/apmd/Makefile | 2 +- usr.sbin/apmd/apmdparse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/apmd/Makefile b/usr.sbin/apmd/Makefile index 0f18a67b6e..3534ce7a49 100644 --- a/usr.sbin/apmd/Makefile +++ b/usr.sbin/apmd/Makefile @@ -3,7 +3,7 @@ PROG= apmd SRCS= apmd.c apmdlex.l apmdparse.y y.tab.h -WARNS?= 0 +WARNS?= 2 DPADD= ${LIBL} ${LIBUTIL} LDADD= -ll -lutil diff --git a/usr.sbin/apmd/apmdparse.y b/usr.sbin/apmd/apmdparse.y index 1ec94f8b86..1c1d5088d9 100644 --- a/usr.sbin/apmd/apmdparse.y +++ b/usr.sbin/apmd/apmdparse.y @@ -58,7 +58,7 @@ extern int first_time; %token APMEVENT %token APMBATT %token BATTCHARGE BATTDISCHARGE -%token BATTTIME BATTPERCENT +%token BATTTIME BATTPERCENT %token EXECCMD REJECTCMD %token EVENT %token STRING UNKNOWN -- 2.11.4.GIT