From a5cee04fad8ca23a2f3a3ac5b5233ca6b01fe71e Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 22 May 2008 15:46:27 +0000 Subject: 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 --- gtk/export_object.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk/export_object.c') diff --git a/gtk/export_object.c b/gtk/export_object.c index 69a6a6c667..b73cb3bff7 100644 --- a/gtk/export_object.c +++ b/gtk/export_object.c @@ -44,7 +44,7 @@ #include <../alert_box.h> #include <../simple_dialog.h> -#include +#include #include #include @@ -125,7 +125,7 @@ eo_save_entry(gchar *save_as_filename, export_object_entry_t *entry, gboolean sh { int to_fd; - to_fd = eth_open(save_as_filename, O_WRONLY | O_CREAT | O_EXCL | + to_fd = ws_open(save_as_filename, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0644); if(to_fd == -1) { /* An error occurred */ if (show_err) @@ -134,15 +134,15 @@ eo_save_entry(gchar *save_as_filename, export_object_entry_t *entry, gboolean sh return FALSE; } - if(eth_write(to_fd, entry->payload_data, entry->payload_len) < 0) { + if(ws_write(to_fd, entry->payload_data, entry->payload_len) < 0) { if (show_err) write_failure_alert_box(save_as_filename, errno); - eth_close(to_fd); + ws_close(to_fd); g_free(save_as_filename); return FALSE; } - if (eth_close(to_fd) < 0) { + if (ws_close(to_fd) < 0) { if (show_err) write_failure_alert_box(save_as_filename, errno); g_free(save_as_filename); -- cgit v1.2.3