summaryrefslogtreecommitdiff
path: root/gtk/ansi_map_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-31 03:22:42 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-31 03:22:42 +0000
commit1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad (patch)
tree1dda390f197eb0fd4dc3bf2e9b4e5b36a8162189 /gtk/ansi_map_stat.c
parent61e26a56bada54f651cb5c4110cae4b8f6548863 (diff)
downloadwireshark-1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad.tar.gz
Pass ESD_BTN_OK rather than NULL as a second argument to
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
Diffstat (limited to 'gtk/ansi_map_stat.c')
-rw-r--r--gtk/ansi_map_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ansi_map_stat.c b/gtk/ansi_map_stat.c
index a6db667b93..00bfb54669 100644
--- a/gtk/ansi_map_stat.c
+++ b/gtk/ansi_map_stat.c
@@ -5,7 +5,7 @@
*
* MUCH code modified from service_response_time_table.c.
*
- * $Id: ansi_map_stat.c,v 1.12 2004/01/21 21:19:31 ulfl Exp $
+ * $Id: ansi_map_stat.c,v 1.13 2004/01/31 03:22:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -464,7 +464,7 @@ register_tap_listener_gtkansi_map_stat(void)
if (err_p != NULL)
{
- simple_dialog(ESD_TYPE_WARN, NULL, err_p->str);
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, err_p->str);
g_string_free(err_p, TRUE);
exit(1);