Blame SOURCES/0125-Do-not-use-bool-in-OPT_BOOL-macro-it-expects-int.patch

0c9110
From dc5823cdbf0923825c56c650c968ddb466cf26e7 Mon Sep 17 00:00:00 2001
0c9110
From: Jakub Filak <jfilak@redhat.com>
0c9110
Date: Wed, 14 Jan 2015 11:54:02 +0100
0c9110
Subject: [LIBREPORT PATCH 125/125] Do not use 'bool' in OPT_BOOL() macro : it
0c9110
 expects 'int'
0c9110
0c9110
Resolves: rhbz#1182091
0c9110
0c9110
Signed-off-by: Jakub Filak <jfilak@redhat.com>
0c9110
---
0c9110
 src/gui-wizard-gtk/main.c      | 6 +++---
0c9110
 src/plugins/reporter-ureport.c | 8 ++++----
0c9110
 2 files changed, 7 insertions(+), 7 deletions(-)
0c9110
0c9110
diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c
0c9110
index 44918ec..41a8089 100644
0c9110
--- a/src/gui-wizard-gtk/main.c
0c9110
+++ b/src/gui-wizard-gtk/main.c
0c9110
@@ -117,13 +117,13 @@ static void
0c9110
 activate_wizard(GApplication *app,
0c9110
                 gpointer user_data)
0c9110
 {
0c9110
-    create_assistant(GTK_APPLICATION(app), (bool)user_data);
0c9110
+    create_assistant(GTK_APPLICATION(app), *(int *)user_data);
0c9110
     update_gui_state_from_problem_data(UPDATE_SELECTED_EVENT);
0c9110
 }
0c9110
 
0c9110
 int main(int argc, char **argv)
0c9110
 {
0c9110
-    bool expert_mode = false;
0c9110
+    int expert_mode = 0;
0c9110
 
0c9110
     const char *prgname = "abrt";
0c9110
     abrt_init(argv);
0c9110
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
0c9110
 
0c9110
     g_custom_logger = &show_error_as_msgbox;
0c9110
     GtkApplication *app = gtk_application_new("org.freedesktop.libreport.report", G_APPLICATION_NON_UNIQUE);
0c9110
-    g_signal_connect(app, "activate", G_CALLBACK(activate_wizard), (gpointer)expert_mode);
0c9110
+    g_signal_connect(app, "activate", G_CALLBACK(activate_wizard), (gpointer)&expert_mode);
0c9110
     g_signal_connect(app, "startup",  G_CALLBACK(startup_wizard),  NULL);
0c9110
     /* Enter main loop */
0c9110
     g_application_run(G_APPLICATION(app), argc, argv);
0c9110
diff --git a/src/plugins/reporter-ureport.c b/src/plugins/reporter-ureport.c
0c9110
index 22efb76..e0c2281 100644
0c9110
--- a/src/plugins/reporter-ureport.c
0c9110
+++ b/src/plugins/reporter-ureport.c
0c9110
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
0c9110
     };
0c9110
 
0c9110
     int ret = 1; /* "failure" (for now) */
0c9110
-    bool insecure = !config.ur_ssl_verify;
0c9110
+    int insecure = !config.ur_ssl_verify;
0c9110
     const char *conf_file = UREPORT_CONF_FILE_PATH;
0c9110
     const char *arg_server_url = NULL;
0c9110
     const char *client_auth = NULL;
0c9110
@@ -56,11 +56,11 @@ int main(int argc, char **argv)
0c9110
     GList *auth_items = NULL;
0c9110
     const char *dump_dir_path = ".";
0c9110
     const char *ureport_hash = NULL;
0c9110
-    bool ureport_hash_from_rt = false;
0c9110
+    int ureport_hash_from_rt = 0;
0c9110
     int rhbz_bug = -1;
0c9110
-    bool rhbz_bug_from_rt = false;
0c9110
+    int rhbz_bug_from_rt = 0;
0c9110
     const char *email_address = NULL;
0c9110
-    bool email_address_from_env = false;
0c9110
+    int email_address_from_env = 0;
0c9110
     struct dump_dir *dd = NULL;
0c9110
     struct options program_options[] = {
0c9110
         OPT__VERBOSE(&g_verbose),
0c9110
-- 
0c9110
1.8.3.1
0c9110