Re: Missing semicolon in snmpd/parse.y

2021-10-20 Thread Otto Moerbeek
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.y15 Oct 2021 15:01:29 -  1.70
> +++ usr.sbin/snmpd/parse.y20 Oct 2021 11:45:29 -
> @@ -350,6 +350,7 @@ listen_udptcp : listenproto STRING port 
>   free($2);
>   free($3);
>   }
> + ;
>  
>  port : /* empty */   {
>   $$ = NULL;




Missing semicolon in snmpd/parse.y

2021-10-20 Thread Gerhard Roth
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.

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 -  1.70
+++ usr.sbin/snmpd/parse.y  20 Oct 2021 11:45:29 -
@@ -350,6 +350,7 @@ listen_udptcp   : listenproto STRING port 
free($2);
free($3);
}
+   ;
 
 port   : /* empty */   {
$$ = NULL;


smime.p7s
Description: S/MIME cryptographic signature