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