Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Pantelis Antoniou <[email protected]>
  • Loading branch information
pantoniou committed Jul 12, 2024
1 parent 97bc520 commit 4ec3ef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions include/libfyaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -10020,7 +10020,7 @@ fy_allocator_reset_tag(struct fy_allocator *a, int tag)
*
* Allocate memory from the given allocator tag, satisfying the
* size and align restrictions.
*
*
* @a: The allocator
* @tag: The tag to allocate from
* @size: The size of the memory to allocate
Expand All @@ -10038,7 +10038,7 @@ fy_allocator_alloc(struct fy_allocator *a, int tag, size_t size, size_t align)
*
* Attempt to free the memory allocated previously by fy_allocator_alloc()
* Note that non per object tracking allocators treat this as a NOP
*
*
* @a: The allocator
* @tag: The tag used to allocate the memory
* @ptr: The pointer to the memory to free
Expand All @@ -10056,7 +10056,7 @@ fy_allocator_free(struct fy_allocator *a, int tag, void *ptr)
* returned.
*
* The return pointer must not be modified, the objects stored are idempotent.
*
*
* @a: The allocator
* @tag: The tag used to allocate the memory
* @data: The pointer to object to store
Expand All @@ -10081,7 +10081,7 @@ fy_allocator_store(struct fy_allocator *a, int tag, const void *data, size_t siz
* The object is created linearly from the scatter gather io vector provided.
*
* The return pointer must not be modified, the objects stored are idempotent.
*
*
* @a: The allocator
* @tag: The tag used to allocate the memory from
* @iov: The I/O scatter gather vector
Expand Down Expand Up @@ -10179,7 +10179,7 @@ enum fy_mremap_arena_type {
*/
struct fy_mremap_allocator_cfg {
size_t big_alloc_threshold;
size_t empty_threshold;
size_t empty_threshold;
size_t minimum_arena_size;
float grow_ratio;
float balloon_ratio;
Expand Down
2 changes: 1 addition & 1 deletion src/allocator/fy-allocator-auto.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int fy_auto_setup(struct fy_allocator *a, const void *cfg_data)
aa->a.name = "auto";
aa->a.ops = &fy_auto_allocator_ops;
aa->cfg = *cfg;

pagesz = sysconf(_SC_PAGESIZE);
size = cfg->estimated_max_size && cfg->estimated_max_size != SIZE_MAX ?
cfg->estimated_max_size :
Expand Down

0 comments on commit 4ec3ef7

Please sign in to comment.