*" as an argument, there's no need to save the file type string in a
"capture_file" structure - we save the file type, and can use that when
generating the summary display.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1202
f5534014-38df-0310-8fa8-
9805f1628bb7
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.132 1999/12/04 08:51:41 guy Exp $
+ * $Id: file.c,v 1.133 1999/12/04 08:59:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
cf->user_saved = !is_tempfile;
cf->cd_t = wtap_file_type(cf->wth);
- cf->cd_t_desc = wtap_file_type_string(cf->cd_t);
cf->first_packet = TRUE;
cf->count = 0;
cf->drops = 0;
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.58 1999/11/30 20:49:47 guy Exp $
+ * $Id: file.h,v 1.59 1999/12/04 08:59:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
gboolean user_saved;/* If capture file is temporary, has it been saved by user yet? */
long f_len; /* Length of capture file */
guint16 cd_t; /* File type of capture file */
- const gchar *cd_t_desc; /* Description of that file type */
gboolean first_packet; /* TRUE if we're looking at the first packet */
int lnk_t; /* Link-layer type with which to save capture */
guint32 vers; /* Version. For tcpdump minor is appended to major */
/* summary.c
* Routines for capture file summary window
*
- * $Id: summary.c,v 1.13 1999/10/11 06:39:01 guy Exp $
+ * $Id: summary.c,v 1.14 1999/12/04 08:59:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
add_string_to_box(string_buff, file_box);
/* format */
- snprintf(string_buff, SUM_STR_MAX, "Format: %s", cf.cd_t_desc);
+ snprintf(string_buff, SUM_STR_MAX, "Format: %s",
+ wtap_file_type_string(cf.cd_t));
add_string_to_box(string_buff, file_box);
/* snapshot length */