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