Ethereal-dev: Re: [Ethereal-dev] 0.9.4: Invalid trailing comma and semicolon

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ashok Narayanan <ashokn@xxxxxxxxx>
Date: Wed, 29 May 2002 23:52:51 -0400 (EDT)
Just a brief question. Is there a specific compiler that complains
about these commas and semicolons. Specifically why are they
syntactically illegal (especially the semicolons)?

-Ashok


> [packet-rsvp.c]
>   No comma at end of enum list
> 
> [packet-sctp.c, packet-skinny.c, packet-syslog.c,
>  packet-sua.c, packet-srvloc.c]
>   Invalid semicolon at end of function
> 
> -- 
> albert chin (china@xxxxxxxxxxxxxxxxxx)
> 
> -- snip snip
> --- packet-rsvp.c.orig	Wed May 29 21:36:17 2002
> +++ packet-rsvp.c	Wed May 29 21:36:26 2002
> @@ -199,7 +199,7 @@
>      RSVP_CLASS_SESSION_ATTRIBUTE = 207,
>      RSVP_CLASS_GENERALIZED_UNI,
>      RSVP_CLASS_DCLASS = 225,
> -    RSVP_CLASS_LSP_TUNNEL_IF_ID = 227,
> +    RSVP_CLASS_LSP_TUNNEL_IF_ID = 227
>  };
>  
>  static value_string rsvp_class_vals[] = { 
> @@ -316,7 +316,7 @@
>      RSVP_SESSION_TYPE_IPV4_LSP = 7,
>      RSVP_SESSION_TYPE_IPV6_LSP,
>  
> -    RSVP_SESSION_TYPE_IPV4_UNI = 9,
> +    RSVP_SESSION_TYPE_IPV4_UNI = 9
>  };
>  
>  /*
> --- packet-sctp.c.orig	Wed May 29 21:37:43 2002
> +++ packet-sctp.c	Wed May 29 21:38:04 2002
> @@ -2449,7 +2449,7 @@
>    sctp_port_dissector_table = register_dissector_table("sctp.port", "SCTP port", FT_UINT16, BASE_DEC);
>    sctp_ppi_dissector_table  = register_dissector_table("sctp.ppi",  "SCTP payload protocol identifier", FT_UINT32, BASE_HEX);
>  
> -};
> +}
>  
>  void
>  proto_reg_handoff_sctp(void)
> --- packet-skinny.c.orig	Wed May 29 21:38:19 2002
> +++ packet-skinny.c	Wed May 29 21:38:22 2002
> @@ -2440,7 +2440,7 @@
>      "Desegment all SCCP messages spanning multiple TCP segments",
>      "Whether the SCCP dissector should desegment all messages spanning multiple TCP segments",
>      &skinny_desegment);
> -};
> +}
>  
>  void
>  proto_reg_handoff_skinny(void)
> --- packet-syslog.c.orig	Wed May 29 21:41:19 2002
> +++ packet-syslog.c	Wed May 29 21:41:23 2002
> @@ -241,7 +241,7 @@
>    /* Required function calls to register the header fields and subtrees used */
>    proto_register_field_array(proto_syslog, hf, array_length(hf));
>    proto_register_subtree_array(ett, array_length(ett));
> -};
> +}
>  
>  void
>  proto_reg_handoff_syslog(void)
> --- packet-sua.c.orig	Wed May 29 21:42:01 2002
> +++ packet-sua.c	Wed May 29 21:42:04 2002
> @@ -2754,7 +2754,7 @@
>  				 "SUA Version",
>  				 &sua_version,
>  				 sua_options, FALSE);
> -};
> +}
>  
>  void
>  proto_reg_handoff_sua(void)
> --- packet-srvloc.c.orig	Wed May 29 21:42:12 2002
> +++ packet-srvloc.c	Wed May 29 21:42:26 2002
> @@ -530,7 +530,7 @@
>  					   "SRVLOC", "srvloc");
>      proto_register_field_array(proto_srvloc, hf, array_length(hf));
>      proto_register_subtree_array(ett, array_length(ett));
> -};
> +}
>  
>  void
>  proto_reg_handoff_srvloc(void)
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev



--- Asok the Intern ----------------------------------------
Ashok Narayanan
IOS Network Protocols, Cisco Systems
250 Apollo Drive, Chelmsford, MA 01824
Ph: 978-497-8387.  Fax: 978-497-8513 (Attn: Ashok Narayanan)