diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-31 03:22:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-31 03:22:42 +0000 |
commit | 1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad (patch) | |
tree | 1dda390f197eb0fd4dc3bf2e9b4e5b36a8162189 /gtk/gsm_a_stat.c | |
parent | 61e26a56bada54f651cb5c4110cae4b8f6548863 (diff) | |
download | wireshark-1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad.tar.gz wireshark-1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad.tar.bz2 wireshark-1980fa5dbf6e3aa953d8bd09d69e0700b74a56ad.zip |
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/gsm_a_stat.c')
-rw-r--r-- | gtk/gsm_a_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gsm_a_stat.c b/gtk/gsm_a_stat.c index 979fa01080..ab778e5378 100644 --- a/gtk/gsm_a_stat.c +++ b/gtk/gsm_a_stat.c @@ -5,7 +5,7 @@ * * MUCH code modified from service_response_time_table.c. * - * $Id: gsm_a_stat.c,v 1.9 2004/01/21 21:19:33 ulfl Exp $ + * $Id: gsm_a_stat.c,v 1.10 2004/01/31 03:22:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -687,7 +687,7 @@ register_tap_listener_gtkgsm_a_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); |