mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Trivial: fix a variable name
It is indices, not indeces.
This commit is contained in:
parent
22cc6ce679
commit
f5bc2e00c7
@ -871,7 +871,7 @@ static GMutex *g_once_mutex = NULL;
|
|||||||
static GCond *g_once_cond = NULL;
|
static GCond *g_once_cond = NULL;
|
||||||
static GPrivate *g_thread_specific_private = NULL;
|
static GPrivate *g_thread_specific_private = NULL;
|
||||||
static GRealThread *g_thread_all_threads = NULL;
|
static GRealThread *g_thread_all_threads = NULL;
|
||||||
static GSList *g_thread_free_indeces = NULL;
|
static GSList *g_thread_free_indices = NULL;
|
||||||
static GSList* g_once_init_list = NULL;
|
static GSList* g_once_init_list = NULL;
|
||||||
|
|
||||||
G_LOCK_DEFINE_STATIC (g_thread);
|
G_LOCK_DEFINE_STATIC (g_thread);
|
||||||
@ -1711,13 +1711,13 @@ g_static_private_set (GStaticPrivate *private_key,
|
|||||||
|
|
||||||
if (!private_key->index)
|
if (!private_key->index)
|
||||||
{
|
{
|
||||||
if (g_thread_free_indeces)
|
if (g_thread_free_indices)
|
||||||
{
|
{
|
||||||
private_key->index =
|
private_key->index =
|
||||||
GPOINTER_TO_UINT (g_thread_free_indeces->data);
|
GPOINTER_TO_UINT (g_thread_free_indices->data);
|
||||||
g_thread_free_indeces =
|
g_thread_free_indices =
|
||||||
g_slist_delete_link (g_thread_free_indeces,
|
g_slist_delete_link (g_thread_free_indices,
|
||||||
g_thread_free_indeces);
|
g_thread_free_indices);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
private_key->index = ++next_index;
|
private_key->index = ++next_index;
|
||||||
@ -1819,7 +1819,7 @@ g_static_private_free (GStaticPrivate *private_key)
|
|||||||
|
|
||||||
UNLOCK_PRIVATE_DATA (thread);
|
UNLOCK_PRIVATE_DATA (thread);
|
||||||
}
|
}
|
||||||
g_thread_free_indeces = g_slist_prepend (g_thread_free_indeces,
|
g_thread_free_indices = g_slist_prepend (g_thread_free_indices,
|
||||||
GUINT_TO_POINTER (idx));
|
GUINT_TO_POINTER (idx));
|
||||||
G_UNLOCK (g_thread);
|
G_UNLOCK (g_thread);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user