diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-22 15:46:27 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-22 15:46:27 +0000 |
commit | 440ebe03d7ad360327a5752cd79879956f6aea8d (patch) | |
tree | 65a7d5c702bf3392494b33ddd7ed43c94e491670 /gtk/print_dlg.c | |
parent | 04d3d6b976e89f301cb6b79c3fd81d823d6a32c7 (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_*.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/print_dlg.c')
-rw-r--r-- | gtk/print_dlg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 8f2ebd0307..b50c27aadc 100644 --- a/gtk/print_dlg.c +++ b/gtk/print_dlg.c @@ -40,7 +40,7 @@ #include "../simple_dialog.h" #include "../tempfile.h" #include "../util.h" -#include "wiretap/file_util.h" +#include <wsutil/file_util.h> #include "gtk/gtkglobals.h" #include "gtk/keys.h" @@ -456,7 +456,7 @@ export_carrays_cmd_cb(GtkWidget *widget _U_, gpointer data _U_) /* init the printing range */ packet_range_init(&args->range); - export_carrays_win = open_print_dialog("Wireshark: Export as \"C Arrays\" File", + export_carrays_win = open_print_dialog("Wireshark: Export as \"C Arrays\" File", output_action_export_carrays, args); g_signal_connect(export_carrays_win, "destroy", G_CALLBACK(print_destroy_cb), &export_carrays_win); } @@ -970,7 +970,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) /* remember to restore these values later! */ tmp_oldfile = args->file; args->file = g_strdup(tmp_namebuf); - eth_unlink(args->file); + ws_unlink(args->file); args->to_file = TRUE; #else g_free(args->cmd); @@ -1104,7 +1104,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) print_mswin(args->file); /* trash temp file */ - eth_remove(args->file); + ws_remove(args->file); /* restore old settings */ args->to_file = FALSE; |