summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2023-04-13 13:14:10 +0200
committerAndreas Schneider <asn@cryptomilk.org>2023-04-14 05:25:33 +0000
commitb6de03c74c28b6ef3517801260e02fde802b5fdb (patch)
tree8f3846398793b6b8f6d133bfce1e82cb0041d2ed /lib/talloc
parentc6e1a949156398952ba7ea3bd8a164409abe985a (diff)
downloadsamba-b6de03c74c28b6ef3517801260e02fde802b5fdb.tar.gz
lib:talloc: Fix code spelling
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/pytalloc_guide.txt2
-rw-r--r--lib/talloc/pytalloc_util.c2
-rw-r--r--lib/talloc/talloc.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/talloc/pytalloc_guide.txt b/lib/talloc/pytalloc_guide.txt
index bd2b68c0213..85705deebff 100644
--- a/lib/talloc/pytalloc_guide.txt
+++ b/lib/talloc/pytalloc_guide.txt
@@ -215,7 +215,7 @@ This will increment the reference counter for the talloc context.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
DEPRECATED! PyObject *pytalloc_CObject_FromTallocPtr(void *);
-Create a new pytalloc_Object for an abitrary talloc-maintained C pointer. This will
+Create a new pytalloc_Object for an arbitrary talloc-maintained C pointer. This will
use a generic VoidPtr Python type, which just provides an opaque object in
Python. The caller is responsible for incrementing the talloc reference count before calling
this function - it will dereference the talloc pointer when it is garbage collected.
diff --git a/lib/talloc/pytalloc_util.c b/lib/talloc/pytalloc_util.c
index 1b7cfdda6e7..064957ffd6f 100644
--- a/lib/talloc/pytalloc_util.c
+++ b/lib/talloc/pytalloc_util.c
@@ -116,7 +116,7 @@ _PUBLIC_ PyObject *pytalloc_reference_ex(PyTypeObject *py_type,
/**
- * Internal function that either steals or referecences the talloc
+ * Internal function that either steals or references the talloc
* pointer into a new talloc context.
*/
static PyObject *pytalloc_steal_or_reference(PyTypeObject *py_type,
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index 530bad896ab..14e9e389f54 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -146,7 +146,7 @@ static struct {
} while (0)
#if defined(DEVELOPER) && defined(VALGRIND_MAKE_MEM_NOACCESS)
-/* Mark the whole chunk as not accessable */
+/* Mark the whole chunk as not accessible */
#define TC_INVALIDATE_FULL_VALGRIND_CHUNK(_tc) do { \
size_t _flen = TC_HDR_SIZE + (_tc)->size; \
char *_fptr = (char *)(_tc); \
@@ -171,7 +171,7 @@ static struct {
} while (0)
#if defined(DEVELOPER) && defined(VALGRIND_MAKE_MEM_NOACCESS)
-/* Mark the unused bytes not accessable */
+/* Mark the unused bytes not accessible */
#define TC_INVALIDATE_SHRINK_VALGRIND_CHUNK(_tc, _new_size) do { \
size_t _flen = (_tc)->size - (_new_size); \
char *_fptr = (char *)TC_PTR_FROM_CHUNK(_tc); \
@@ -661,7 +661,7 @@ static inline void *tc_pool_first_chunk(struct talloc_pool_hdr *pool_hdr)
return tc_next_chunk(tc);
}
-/* Mark the whole remaining pool as not accessable */
+/* Mark the whole remaining pool as not accessible */
static inline void tc_invalidate_pool(struct talloc_pool_hdr *pool_hdr)
{
size_t flen = tc_pool_space_left(pool_hdr);