summaryrefslogtreecommitdiff
path: root/gtk/wsp_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/wsp_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/wsp_stat.c')
-rw-r--r--gtk/wsp_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/wsp_stat.c b/gtk/wsp_stat.c
index 5e3be3bc4a..663edb1815 100644
--- a/gtk/wsp_stat.c
+++ b/gtk/wsp_stat.c
@@ -1,7 +1,7 @@
/* wsp_stat.c
* wsp_stat 2003 Jean-Michel FAYARD
*
- * $Id: wsp_stat.c,v 1.14 2004/01/21 21:19:34 ulfl Exp $
+ * $Id: wsp_stat.c,v 1.15 2004/01/31 03:22:42 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -394,7 +394,7 @@ gtk_wspstat_init(char *optarg)
wspstat_draw);
if (error_string){
/* error, we failed to attach to the tap. clean up */
- simple_dialog( ESD_TYPE_WARN, NULL, error_string->str );
+ simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str );
g_free(sp->pdu_stats);
g_free(sp->filter);
g_free(sp);