[glib] docs: Fix a typo in the GSlice documentation
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Fix a typo in the GSlice documentation
- Date: Wed, 11 Oct 2017 10:48:38 +0000 (UTC)
commit 652a47d1d107cc996182bb770ac72fae5d917175
Author: Philip Withnall <withnall endlessm com>
Date: Wed Oct 11 11:48:08 2017 +0100
docs: Fix a typo in the GSlice documentation
And in a few of its variable names. s/adress/address/.
Signed-off-by: Philip Withnall <withnall endlessm com>
glib/gslice.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glib/gslice.c b/glib/gslice.c
index 6ff3597..c6caee7 100644
--- a/glib/gslice.c
+++ b/glib/gslice.c
@@ -972,7 +972,7 @@ thread_memory_magazine2_free (ThreadMemory *tmem,
* @block_size: the number of bytes to allocate
*
* Allocates a block of memory from the slice allocator.
- * The block adress handed out can be expected to be aligned
+ * The block address handed out can be expected to be aligned
* to at least 1 * sizeof (void*),
* though in general slices are 2 * sizeof (void*) bytes aligned,
* if a malloc() fallback implementation is used instead,
@@ -1492,18 +1492,18 @@ static void
smc_notify_alloc (void *pointer,
size_t size)
{
- size_t adress = (size_t) pointer;
+ size_t address = (size_t) pointer;
if (pointer)
- smc_tree_insert (adress, size);
+ smc_tree_insert (address, size);
}
#if 0
static void
smc_notify_ignore (void *pointer)
{
- size_t adress = (size_t) pointer;
+ size_t address = (size_t) pointer;
if (pointer)
- smc_tree_remove (adress);
+ smc_tree_remove (address);
}
#endif
@@ -1511,13 +1511,13 @@ static int
smc_notify_free (void *pointer,
size_t size)
{
- size_t adress = (size_t) pointer;
+ size_t address = (size_t) pointer;
SmcVType real_size;
gboolean found_one;
if (!pointer)
return 1; /* ignore */
- found_one = smc_tree_lookup (adress, &real_size);
+ found_one = smc_tree_lookup (address, &real_size);
if (!found_one)
{
fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%"
G_GSIZE_FORMAT "\n", pointer, size);
@@ -1528,7 +1528,7 @@ smc_notify_free (void *pointer,
fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: %p size=%"
G_GSIZE_FORMAT " invalid-size=%" G_GSIZE_FORMAT "\n", pointer, real_size, size);
return 0;
}
- if (!smc_tree_remove (adress))
+ if (!smc_tree_remove (address))
{
fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%"
G_GSIZE_FORMAT "\n", pointer, size);
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]