From b6de03c74c28b6ef3517801260e02fde802b5fdb Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 13 Apr 2023 13:14:10 +0200 Subject: [PATCH] lib:talloc: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Joseph Sutton --- lib/talloc/pytalloc_guide.txt | 2 +- lib/talloc/pytalloc_util.c | 2 +- lib/talloc/talloc.c | 6 +++--- 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);