Get rid of unused global variable.
authorGuy Harris <guy@alum.mit.edu>
Thu, 16 May 2013 20:25:44 +0000 (20:25 -0000)
committerGuy Harris <guy@alum.mit.edu>
Thu, 16 May 2013 20:25:44 +0000 (20:25 -0000)
svn path=/trunk/; revision=49341

wiretap/ascend.y

index 2f49403a9c2142ca3e954fff002519f6a3980a0c..6e1f36f8e3f25ca8618288cf9dcffe701fb6bf55 100644 (file)
@@ -149,7 +149,6 @@ const gchar *ascend_parse_error;
 
 static unsigned int bcur;
 static guint32 start_time, secs, usecs, caplen, wirelen;
-static ascend_pkthdr *header;
 struct ascend_phdr *pseudo_header;
 static guint8 *pkt_data;
 static gint64 first_hexbyte;
@@ -448,14 +447,13 @@ init_parse_ascend(void)
      PARSE_FAILED if the parser failed. */
 parse_t
 parse_ascend(FILE_T fh, guint8 *pd, struct ascend_phdr *phdr,
-               ascend_pkthdr *hdr, gint64 *start_of_data)
+               ascend_pkthdr *header, gint64 *start_of_data)
 {
   /* yydebug = 1; */
   int retval;
   ascend_init_lexer(fh);
   pkt_data = pd;
   pseudo_header = phdr;
-  header = hdr;
 
   bcur = 0;
   first_hexbyte = 0;