summaryrefslogtreecommitdiff
path: root/gcr/gcr-pkcs11-importer.c
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2020-01-11 11:02:52 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2020-01-11 11:06:25 +0100
commitd748ab581f0fdbf6b9524ebf69e2ab714293cbd1 (patch)
tree7d5ebc2d3cadb2930c341b49cc15000f57672483 /gcr/gcr-pkcs11-importer.c
parent473c3901c9fd67d429901faebbb8157de292d7f8 (diff)
downloadgcr-d748ab581f0fdbf6b9524ebf69e2ab714293cbd1.tar.gz
Cast result of g_object_ref() if necessary
Although `g_object_ref()` technically returns a `gpointer`, on some compilers it will return the type of its argument. This means we need to add the necessary casting.
Diffstat (limited to 'gcr/gcr-pkcs11-importer.c')
-rw-r--r--gcr/gcr-pkcs11-importer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcr/gcr-pkcs11-importer.c b/gcr/gcr-pkcs11-importer.c
index ab497aa..7cf3295 100644
--- a/gcr/gcr-pkcs11-importer.c
+++ b/gcr/gcr-pkcs11-importer.c
@@ -856,7 +856,7 @@ _gcr_pkcs11_importer_import_async (GcrImporter *importer,
_gcr_pkcs11_importer_import_async);
data = g_new0 (GcrImporterData, 1);
data->async = TRUE;
- data->importer = g_object_ref (importer);
+ data->importer = GCR_PKCS11_IMPORTER (g_object_ref (importer));
data->cancellable = cancellable ? g_object_ref (cancellable) : NULL;
g_simple_async_result_set_op_res_gpointer (res, data, gcr_importer_data_free);