From 25edd1c53e8ad3f53ef29d7cc5a6ca5a563f75a7 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sat, 31 Jan 2004 02:25:46 +0000 Subject: renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR to better reflect the real error text svn path=/trunk/; revision=9913 --- capture.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'capture.c') diff --git a/capture.c b/capture.c index dd67340808..3068a877e6 100644 --- a/capture.c +++ b/capture.c @@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.229 2004/01/31 01:32:51 guy Exp $ + * $Id: capture.c,v 1.230 2004/01/31 02:25:43 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -315,14 +315,14 @@ do_capture(const char *save_file) } if (cfile.save_file_fd == -1) { if (is_tempfile) { - simple_dialog(ESD_TYPE_CRIT, NULL, + simple_dialog(ESD_TYPE_ERROR, NULL, "The temporary file to which the capture would be saved (\"%s\")" "could not be opened: %s.", capfile_name, strerror(errno)); } else { if (capture_opts.ringbuffer_on) { ringbuf_error_cleanup(); } - simple_dialog(ESD_TYPE_CRIT, NULL, + simple_dialog(ESD_TYPE_ERROR, NULL, file_open_error_message(errno, TRUE), capfile_name); } g_free(capfile_name); @@ -413,7 +413,7 @@ do_capture(const char *save_file) unlink(cfile.save_file); g_free(cfile.save_file); cfile.save_file = NULL; - simple_dialog(ESD_TYPE_CRIT, NULL, "Couldn't create sync pipe: %s", + simple_dialog(ESD_TYPE_ERROR, NULL, "Couldn't create sync pipe: %s", strerror(error)); return FALSE; } @@ -449,7 +449,7 @@ do_capture(const char *save_file) unlink(cfile.save_file); g_free(cfile.save_file); cfile.save_file = NULL; - simple_dialog(ESD_TYPE_CRIT, NULL, "Couldn't create sync pipe: %s", + simple_dialog(ESD_TYPE_ERROR, NULL, "Couldn't create sync pipe: %s", strerror(error)); return FALSE; } @@ -513,7 +513,7 @@ do_capture(const char *save_file) unlink(cfile.save_file); g_free(cfile.save_file); cfile.save_file = NULL; - simple_dialog(ESD_TYPE_CRIT, NULL, "Couldn't create child process: %s", + simple_dialog(ESD_TYPE_ERROR, NULL, "Couldn't create child process: %s", strerror(error)); return FALSE; } @@ -577,7 +577,7 @@ do_capture(const char *save_file) "Capture child process failed: EOF reading its error message."); wait_for_child(FALSE); } else - simple_dialog(ESD_TYPE_CRIT, NULL, msg); + simple_dialog(ESD_TYPE_ERROR, NULL, msg); g_free(msg); } @@ -797,7 +797,7 @@ cap_pipe_input_cb(gint source, gpointer user_data) msglen -= chars_to_copy; } *r = '\0'; - simple_dialog(ESD_TYPE_CRIT, NULL, msg); + simple_dialog(ESD_TYPE_ERROR, NULL, msg); g_free(msg); break; default : @@ -2023,7 +2023,7 @@ popup_errmsg(const char *errmsg) send_errmsg_to_parent(errmsg); } else { /* Display the dialog box ourselves; there's no parent. */ - simple_dialog(ESD_TYPE_CRIT, NULL, "%s", errmsg); + simple_dialog(ESD_TYPE_ERROR, NULL, "%s", errmsg); } } -- cgit v1.2.3