diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-01-01 11:50:57 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-01 20:15:25 +0000 |
commit | bac10e586948943f51f36cdad59b409c7de825c3 (patch) | |
tree | fd9e3ecaa6111ed42399342e5d35369171cc484a /ui/export_object_ui.c | |
parent | bfe81ab3901e51301f3a09fbe22c4022c150984c (diff) |
Get rid of local_eo_save_entry().
Have eo_save_entry() use the report_ routines to report errors, so they
pop up a dialog in Wireshark and print an error message in command-line
programs such as TShark. Use it instead of local_eo_save_entry().
Change-Id: I689fd880ff2a31486372374560129ee9d9692b1e
Reviewed-on: https://code.wireshark.org/review/31294
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/export_object_ui.c')
-rw-r--r-- | ui/export_object_ui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/export_object_ui.c b/ui/export_object_ui.c index 97b54cfecd..ef350d3164 100644 --- a/ui/export_object_ui.c +++ b/ui/export_object_ui.c @@ -23,8 +23,7 @@ #include <wiretap/wtap.h> #include <wsutil/file_util.h> - -#include <ui/alert_box.h> +#include <wsutil/report_message.h> #include "export_object_ui.h" @@ -42,7 +41,7 @@ eo_save_entry(const gchar *save_as_filename, export_object_entry_t *entry, gbool O_BINARY, 0644); if(to_fd == -1) { /* An error occurred */ if (show_err) - open_failure_alert_box(save_as_filename, errno, TRUE); + report_open_failure(save_as_filename, errno, TRUE); return FALSE; } @@ -73,7 +72,7 @@ eo_save_entry(const gchar *save_as_filename, export_object_entry_t *entry, gbool else err = WTAP_ERR_SHORT_WRITE; if (show_err) - write_failure_alert_box(save_as_filename, err); + report_write_failure(save_as_filename, err); ws_close(to_fd); return FALSE; } @@ -82,7 +81,7 @@ eo_save_entry(const gchar *save_as_filename, export_object_entry_t *entry, gbool } if (ws_close(to_fd) < 0) { if (show_err) - write_failure_alert_box(save_as_filename, errno); + report_write_failure(save_as_filename, errno); return FALSE; } |