On Wed, Oct 20, 2021 at 01:58:03PM +0200, Gerhard Roth wrote: > Hi, > > the rule for 'listen_udptcp' is missing a semicolon at its end. > > I have no idea what yacc does to the following 'port' rule without > that semicolon.
Looks like the generated c code is the same; ok otto@ -Otto > > Gerhard > > > Index: usr.sbin/snmpd/parse.y > =================================================================== > RCS file: /cvs/src/usr.sbin/snmpd/parse.y,v > retrieving revision 1.70 > diff -u -p -u -p -r1.70 parse.y > --- usr.sbin/snmpd/parse.y 15 Oct 2021 15:01:29 -0000 1.70 > +++ usr.sbin/snmpd/parse.y 20 Oct 2021 11:45:29 -0000 > @@ -350,6 +350,7 @@ listen_udptcp : listenproto STRING port > free($2); > free($3); > } > + ; > > port : /* empty */ { > $$ = NULL;