Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/envstat option noinput nounput



details:   https://anonhg.NetBSD.org/src/rev/7398164fec71
branches:  trunk
changeset: 748635:7398164fec71
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 29 14:38:37 2009 +0000

description:
option noinput nounput

diffstat:

 usr.sbin/envstat/Makefile     |  4 ++--
 usr.sbin/envstat/config_lex.l |  7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r f46a513ca8cd -r 7398164fec71 usr.sbin/envstat/Makefile
--- a/usr.sbin/envstat/Makefile Thu Oct 29 14:37:56 2009 +0000
+++ b/usr.sbin/envstat/Makefile Thu Oct 29 14:38:37 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2009/04/22 15:23:03 lukem Exp $
+# $NetBSD: Makefile,v 1.7 2009/10/29 14:38:37 christos Exp $
 
 PROG=          envstat
 SRCS+=         envstat.c config.c config_yacc.y config_lex.l
@@ -8,7 +8,7 @@
 
 MAN=           envstat.8 envsys.conf.5
 
-CPPFLAGS+=      -I${.CURDIR} -I. -DYY_NO_INPUT
+CPPFLAGS+=      -I${.CURDIR} -I.
 
 YHEADER=       yes
 
diff -r f46a513ca8cd -r 7398164fec71 usr.sbin/envstat/config_lex.l
--- a/usr.sbin/envstat/config_lex.l     Thu Oct 29 14:37:56 2009 +0000
+++ b/usr.sbin/envstat/config_lex.l     Thu Oct 29 14:38:37 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config_lex.l,v 1.5 2009/10/28 22:37:50 christos Exp $  */
+/*     $NetBSD: config_lex.l,v 1.6 2009/10/29 14:38:37 christos Exp $  */
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: config_lex.l,v 1.5 2009/10/28 22:37:50 christos Exp $");
+__RCSID("$NetBSD: config_lex.l,v 1.6 2009/10/29 14:38:37 christos Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -42,11 +42,10 @@
 extern int yyerror(const char *, ...);
 int yylex(void);
 
-#define YY_NO_UNPUT
 
 %}
 
-%option noyywrap
+%option noyywrap noinput nounput
 
 DEVICEPROP     refresh-timeout
 SENSOR         sensor[0-9]+



Home | Main Index | Thread Index | Old Index