summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-05-03 23:51:32 +0000
committerjkim <jkim@FreeBSD.org>2013-05-03 23:51:32 +0000
commiteb004e0f1388470d70a4c8ffc653d593cc372887 (patch)
tree178d54373fb0edb2ba3c317479c4aa893565bb94 /usr.sbin/apmd
parent0ceb3c977351928509aac9580e4929caa3985909 (diff)
downloadFreeBSD-src-eb004e0f1388470d70a4c8ffc653d593cc372887.zip
FreeBSD-src-eb004e0f1388470d70a4c8ffc653d593cc372887.tar.gz
Improve compatibility with recent flex from flex.sourceforge.net.
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r--usr.sbin/apmd/apmdlex.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/apmd/apmdlex.l b/usr.sbin/apmd/apmdlex.l
index dc7664d..b002feb 100644
--- a/usr.sbin/apmd/apmdlex.l
+++ b/usr.sbin/apmd/apmdlex.l
@@ -36,14 +36,14 @@
#include "apmd.h"
#include "y.tab.h"
-/* We don't need it, avoid the warning. */
-#define YY_NO_UNPUT
-#define YY_NO_INPUT
-
int lineno;
int first_time;
%}
+/* We don't need it, avoid the warning. */
+%option nounput
+%option noinput
+
%s TOP
%%
OpenPOWER on IntegriCloud