From Jose Pedro Oliveira fix a typo

svn path=/trunk/; revision=41091
This commit is contained in:
Anders Broman 2012-02-20 22:40:17 +00:00
parent 8902b31f51
commit 89758cdec8
4 changed files with 9 additions and 9 deletions

2
file.c
View File

@ -3796,7 +3796,7 @@ cf_save(capture_file *cf, const char *fname, packet_range_t *range, guint save_f
we have to do it by writing the packets out in Wiretap. */
wtapng_section_t *shb_hdr = NULL;
wtapng_iface_dsecriptions_t *idb_inf = NULL;
wtapng_iface_descriptions_t *idb_inf = NULL;
shb_hdr = wtap_file_get_shb_info(cf->wth);
idb_inf = wtap_file_get_idb_info(cf->wth);

View File

@ -980,7 +980,7 @@ wtap_dumper* wtap_dump_open(const char *filename, int filetype, int encap,
}
wtap_dumper* wtap_dump_open_ng(const char *filename, int filetype, int encap,
int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_dsecriptions_t *idb_inf, int *err)
int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_descriptions_t *idb_inf, int *err)
{
wtap_dumper *wdh;
WFILE_T fh;

View File

@ -112,11 +112,11 @@ wtapng_section_t* wtap_file_get_shb_info(wtap *wth)
return shb_hdr;
}
wtapng_iface_dsecriptions_t* wtap_file_get_idb_info(wtap *wth)
wtapng_iface_descriptions_t* wtap_file_get_idb_info(wtap *wth)
{
wtapng_iface_dsecriptions_t *idb_info;
wtapng_iface_descriptions_t *idb_info;
idb_info = g_new(wtapng_iface_dsecriptions_t,1);
idb_info = g_new(wtapng_iface_descriptions_t,1);
idb_info->number_of_interfaces = wth->number_of_interfaces;
idb_info->interface_data = wth->interface_data;

View File

@ -851,10 +851,10 @@ typedef struct wtapng_section_s {
* the interface_data array holds an array of wtapng_if_descr_t
* one per interface.
*/
typedef struct wtapng_iface_dsecriptions_s {
typedef struct wtapng_iface_descriptions_s {
guint number_of_interfaces;
GArray *interface_data;
} wtapng_iface_dsecriptions_t;
} wtapng_iface_descriptions_t;
/* Interface Description
*
@ -1007,7 +1007,7 @@ int wtap_file_type(wtap *wth);
int wtap_file_encap(wtap *wth);
int wtap_file_tsprecision(wtap *wth);
wtapng_section_t* wtap_file_get_shb_info(wtap *wth);
wtapng_iface_dsecriptions_t *wtap_file_get_idb_info(wtap *wth);
wtapng_iface_descriptions_t *wtap_file_get_idb_info(wtap *wth);
/*** close the current file ***/
void wtap_sequential_close(wtap *wth);
@ -1023,7 +1023,7 @@ wtap_dumper* wtap_dump_open(const char *filename, int filetype, int encap,
int snaplen, gboolean compressed, int *err);
wtap_dumper* wtap_dump_open_ng(const char *filename, int filetype, int encap,
int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_dsecriptions_t *idb_inf, int *err);
int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_descriptions_t *idb_inf, int *err);
wtap_dumper* wtap_dump_fdopen(int fd, int filetype, int encap, int snaplen,
gboolean compressed, int *err);