aboutsummaryrefslogtreecommitdiffstats
path: root/ui/alert_box.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-03-26 19:05:20 -0700
committerGuy Harris <guy@alum.mit.edu>2016-03-27 02:06:28 +0000
commitf0ada20a91b2f8aeb785dfd121060af0442dd307 (patch)
tree39d7e386b3c00d1e2b4372811c7c53d956a3fb05 /ui/alert_box.h
parent445a57bdc35f5f09ef878b6bf5a46d7018ddddcc (diff)
Make failure_alert_box() be printf-like.
Have it be printf-like, and have vfailure_alert_box() be vprintf-like. Rename a few variables to make it clearer what pointers point to vprintf-like functions. Change-Id: I960e2138a18edcc742c450d68a0c6f7248f50c3f Reviewed-on: https://code.wireshark.org/review/14646 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/alert_box.h')
-rw-r--r--ui/alert_box.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/alert_box.h b/ui/alert_box.h
index 69f11faa51..1028027eb1 100644
--- a/ui/alert_box.h
+++ b/ui/alert_box.h
@@ -31,7 +31,8 @@ extern "C" {
/*
* Alert box for general errors.
*/
-extern void failure_alert_box(const char *msg_format, va_list ap);
+extern void failure_alert_box(const char *msg_format, ...) G_GNUC_PRINTF(1, 2);
+extern void vfailure_alert_box(const char *msg_format, va_list ap);
/*
* Alert box for a failed attempt to open or create a file.