Don't dereference pointer before checking for NULL
[obnox/wireshark/wip.git] / alert_box.h
index 667b8101ed87f462d558b00733055376cae5e72b..53531e845559f9aa937379e4dec26c9070cc8847 100644 (file)
@@ -2,10 +2,10 @@
  * Routines to put up various "standard" alert boxes used in multiple
  * places
  *
- * $Id: alert_box.h,v 1.3 2004/02/11 01:37:11 guy Exp $
+ * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
 extern "C" {
 #endif /* __cplusplus */
 
+/*
+ * Alert box for general errors.
+ */
+extern void failure_alert_box(const char *msg_format, va_list ap);
+
 /*
  * Alert box for a failed attempt to open or create a file.
  * "err" is assumed to be a UNIX-style errno; "for_writing" is TRUE if
@@ -39,6 +44,12 @@ extern "C" {
 extern void open_failure_alert_box(const char *filename, int err,
                                    gboolean for_writing);
 
+/*
+ * Alert box for a failed attempt to read a file.
+ * "err" is assumed to be a UNIX-style errno.
+ */
+extern void read_failure_alert_box(const char *filename, int err);
+
 /*
  * Alert box for a failed attempt to write to a file.
  * "err" is assumed to be a UNIX-style errno.