Ethereal-dev: [Ethereal-dev] trailing comma in enumeration

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

From: Albert Chin <ethereal-dev@xxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jan 2003 19:58:46 -0600
Needed to fix a warning on Tru64 UNIX 4.0D:
cc: Info: packet-rsvp.c, line 127: Trailing comma found in enumerator
list. (trailcomma)
};
^
cc: Info: packet-rsvp.c, line 237: Trailing comma found in enumerator
list. (trailcomma)
};
^

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)

-- snip snip
--- packet-rsvp.c.orig	Thu Jan 23 19:56:34 2003
+++ packet-rsvp.c	Thu Jan 23 19:56:48 2003
@@ -123,7 +123,7 @@
     TT_DETOUR,
     TT_UNKNOWN_CLASS,
 
-    TT_MAX,
+    TT_MAX
 };
 static gint ett_treelist[TT_MAX];
 static gint *ett_tree[TT_MAX];
@@ -233,7 +233,7 @@
     RSVP_CLASS_LSP_TUNNEL_IF_ID = 227,
 
     RSVP_CLASS_FAST_REROUTE = 228, /* TBD */
-    RSVP_CLASS_DETOUR = 229, /* TBD */
+    RSVP_CLASS_DETOUR = 229 /* TBD */
 };
 
 static value_string rsvp_class_vals[] = {