krb5 commit: Fix token and type declarations in getdate.y

Greg Hudson ghudson at mit.edu
Wed Jul 22 17:44:03 EDT 2020


https://github.com/krb5/krb5/commit/d3356bc42191c1896ab06835a2fb245e00471420
commit d3356bc42191c1896ab06835a2fb245e00471420
Author: Greg Hudson <ghudson at mit.edu>
Date:   Tue Jul 21 01:41:21 2020 -0400

    Fix token and type declarations in getdate.y
    
    Bison 3.5 adds a POSIX yacc compliance warning that %type should only
    be applied to non-terminals.  Use %token for terminals in getdate.y.
    Reported by Norm Green.
    
    ticket: 8927

 src/kadmin/cli/getdate.y |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y
index 4f0fac2..2b8dbcd 100644
--- a/src/kadmin/cli/getdate.y
+++ b/src/kadmin/cli/getdate.y
@@ -185,12 +185,10 @@ static time_t	yyRelSeconds;
     enum _MERIDIAN	Meridian;
 }
 
-%token	tAGO tDAY tDAYZONE tID tMERIDIAN tMINUTE_UNIT tMONTH tMONTH_UNIT
-%token	tSEC_UNIT tSNUMBER tUNUMBER tZONE tDST tNEVER
-
-%type	<Number>	tDAY tDAYZONE tMINUTE_UNIT tMONTH tMONTH_UNIT
-%type	<Number>	tSEC_UNIT tSNUMBER tUNUMBER tZONE
-%type	<Meridian>	tMERIDIAN o_merid
+%token			tAGO tID tDST tNEVER
+%token	<Number>	tDAY tDAYZONE tMINUTE_UNIT tMONTH tMONTH_UNIT
+%token	<Number>	tSEC_UNIT tSNUMBER tUNUMBER tZONE tMERIDIAN
+%type	<Meridian>	o_merid
 
 %%
 


More information about the cvs-krb5 mailing list