mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:talloc: Fix code spelling
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
parent
c6e1a94915
commit
b6de03c74c
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user