[gnome-keyring] [gck] Use unsigned long for module handle counter.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [gck] Use unsigned long for module handle counter.
- Date: Sat, 10 Oct 2009 02:07:57 +0000 (UTC)
commit 7ddaf5e8d62d3c0955915b3202ae1462aae2e932
Author: Stef Walter <stef memberwebs com>
Date: Sat Oct 10 02:00:49 2009 +0000
[gck] Use unsigned long for module handle counter.
Fix compiler warning by using unsigned long for module handle
counter. See bug #595543
pkcs11/gck/gck-module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pkcs11/gck/gck-module.c b/pkcs11/gck/gck-module.c
index 077af6b..d36228c 100644
--- a/pkcs11/gck/gck-module.c
+++ b/pkcs11/gck/gck-module.c
@@ -61,7 +61,7 @@ struct _GckModulePrivate {
GckManager *token_manager;
GHashTable *apartments_by_id; /* Apartment (slot + application) by their id */
GHashTable *sessions_by_handle; /* Mapping of handle to all open sessions */
- gint handle_counter; /* Constantly incrementing counter for handles and the like */
+ gulong handle_counter; /* Constantly incrementing counter for handles and the like */
GArray *factories; /* Various registered object factories */
gboolean factories_sorted; /* Whether we need to sort the object factories */
@@ -552,7 +552,7 @@ gck_module_init (GckModule *self)
gck_util_ulong_free, apartment_free);
self->pv->factories = g_array_new (FALSE, TRUE, sizeof (GckFactoryInfo));
- g_atomic_int_set (&(self->pv->handle_counter), 1);
+ self->pv->handle_counter = 1;
/* Create the store for transient objects */
self->pv->transient_store = GCK_STORE (gck_memory_store_new ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]