lib:talloc: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 13 Apr 2023 11:14:10 +0000 (13:14 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 14 Apr 2023 05:25:33 +0000 (05:25 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/talloc/pytalloc_guide.txt
lib/talloc/pytalloc_util.c
lib/talloc/talloc.c

index bd2b68c0213db80563f60ab39d9742934b0983b2..85705deebffb6c5d2a15d4700e06e8ae1755cffd 100644 (file)
@@ -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.
index 1b7cfdda6e7cde9964409d50e58cd9a0552e43e6..064957ffd6f50a594da6f8a2bb579bb3712b03b3 100644 (file)
@@ -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,
index 530bad896abc7011e75add989f1f103b917e20c9..14e9e389f5464d52c3c0ce9216045df55a6d4f25 100644 (file)
@@ -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);