diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-15 22:38:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-15 22:38:59 +0800 |
commit | 58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8 (patch) | |
tree | b6d3a47f051d5d81fcc2c7219ff60a5a77711f77 /plugins | |
parent | ea52ab83fe121796a12a090ce81ba114d2c368ed (diff) | |
download | gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.tar.gz gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.tar.zst gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.zip |
Prevent future bugs like #612792.
Add G_GNUC_NULL_TERMINATED to EAlert functions with variable-length
parameter lists and drop the unnecessary "arg0" parameter so the
function attribute works correctly.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/backup-restore/backup-restore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index 80d0b76fcb..5286605f66 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -95,7 +95,7 @@ sanity_check (const gchar *filename) } static guint32 -dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, const gchar *arg0, ...) +dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ...) { GtkWidget *mbox, *check = NULL; va_list ap; @@ -103,8 +103,8 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, con guint32 mask = 0; EAlert *alert = NULL; - va_start(ap, arg0); - alert = e_alert_new_valist(tag, arg0, ap); + va_start(ap, tag); + alert = e_alert_new_valist(tag, ap); va_end(ap); mbox = e_alert_dialog_new (parent, alert); |