diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-21 05:03:56 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-01-21 05:03:56 +0000 |
commit | 10c23c3cd254a80c095eea6a4afebcf5cfe6c353 (patch) | |
tree | 35e13734ec9d158cc9e8dd638eb9fcec5f225d4d /file.c | |
parent | 43a8b4b5a50e5d41b574dedcf10caaee28be30e8 (diff) |
I changed the wtap_open_offline() function so that it takes only the
filename as the parameter. So far all the filetypes that wiretap can read
can be inferred from the first few bytes of the file, so we never
have to give wiretap a hint as to the file type.
svn path=/trunk/; revision=173
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.18 1999/01/07 16:15:34 gram Exp $ + * $Id: file.c,v 1.19 1999/01/21 05:03:55 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -140,7 +140,7 @@ open_cap_file(char *fname, capture_file *cf) { cf->pfh = pcap_open_offline(fname, err_str); if (cf->pfh == NULL) { #else - cf->wth = wtap_open_offline(fname, WTAP_FILE_UNKNOWN); + cf->wth = wtap_open_offline(fname); if (cf->wth == NULL) { #endif |