diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-05-22 15:46:27 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-05-22 15:46:27 +0000 |
commit | a5cee04fad8ca23a2f3a3ac5b5233ca6b01fe71e (patch) | |
tree | 65a7d5c702bf3392494b33ddd7ed43c94e491670 /text2pcap.c | |
parent | da2f447a9bda3a05dd8e61b1c1f5dea4b5912f6b (diff) |
Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.
While doing that, rename the eth_* functions to ws_*.
svn path=/trunk/; revision=25354
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text2pcap.c b/text2pcap.c index c62aa7490a..433df29481 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -97,7 +97,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <wiretap/file_util.h> +#include <wsutil/file_util.h> #include <time.h> #include <glib.h> @@ -1264,7 +1264,7 @@ parse_options (int argc, char *argv[]) if (strcmp(argv[optind], "-")) { input_filename = g_strdup(argv[optind]); - input_file = eth_fopen(input_filename, "rb"); + input_file = ws_fopen(input_filename, "rb"); if (!input_file) { fprintf(stderr, "Cannot open file [%s] for reading: %s\n", input_filename, strerror(errno)); @@ -1277,7 +1277,7 @@ parse_options (int argc, char *argv[]) if (strcmp(argv[optind+1], "-")) { output_filename = g_strdup(argv[optind+1]); - output_file = eth_fopen(output_filename, "wb"); + output_file = ws_fopen(output_filename, "wb"); if (!output_file) { fprintf(stderr, "Cannot open file [%s] for writing: %s\n", output_filename, strerror(errno)); |