[Midnightbsd-cvs] src [11291] trunk/usr.sbin/apmd/apmdlex.l: fix warning

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jul 4 09:38:19 EDT 2018


Revision: 11291
          http://svnweb.midnightbsd.org/src/?rev=11291
Author:   laffer1
Date:     2018-07-04 09:38:19 -0400 (Wed, 04 Jul 2018)
Log Message:
-----------
fix warning

Modified Paths:
--------------
    trunk/usr.sbin/apmd/apmdlex.l

Property Changed:
----------------
    trunk/usr.sbin/apmd/apmdlex.l

Modified: trunk/usr.sbin/apmd/apmdlex.l
===================================================================
--- trunk/usr.sbin/apmd/apmdlex.l	2018-07-04 13:37:33 UTC (rev 11290)
+++ trunk/usr.sbin/apmd/apmdlex.l	2018-07-04 13:38:19 UTC (rev 11291)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 %{
 /*-
  * APM (Advanced Power Management) Event Dispatcher
@@ -27,7 +28,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $MidnightBSD$
+ * $FreeBSD: stable/10/usr.sbin/apmd/apmdlex.l 250227 2013-05-03 23:51:32Z jkim $
  */
 
 #include <string.h>
@@ -36,14 +37,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
 
 %%


Property changes on: trunk/usr.sbin/apmd/apmdlex.l
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list