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