mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-06 08:39:06 +08:00
libbpf: Fix a couple of typos
This change fixes a couple of typos that were encountered while studying the source code. Signed-off-by: Daniel Müller <deso@posteo.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20220601154025.3295035-1-deso@posteo.net
This commit is contained in:
committed by
Andrii Nakryiko
parent
a5d75daa8c
commit
55638904af
@@ -130,7 +130,7 @@ static inline __u64 ptr_to_u64(const void *ptr)
|
||||
|
||||
/* Ensure given dynamically allocated memory region pointed to by *data* with
|
||||
* capacity of *cap_cnt* elements each taking *elem_sz* bytes has enough
|
||||
* memory to accomodate *add_cnt* new elements, assuming *cur_cnt* elements
|
||||
* memory to accommodate *add_cnt* new elements, assuming *cur_cnt* elements
|
||||
* are already used. At most *max_cnt* elements can be ever allocated.
|
||||
* If necessary, memory is reallocated and all existing data is copied over,
|
||||
* new pointer to the memory region is stored at *data, new memory region
|
||||
|
||||
Reference in New Issue
Block a user