Skip to content

Commit e88ffc8

Browse files
committed
refactor array: rename msize macro to minsize
Signed-off-by: John Sanpe <sanpeqf@gmail.com>
1 parent 67e5594 commit e88ffc8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/bfdev/array.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ BFDEV_BEGIN_DECLS
2424
* is typically useful when buffering I/O or processing data.
2525
*/
2626

27-
#ifndef BFDEV_ARRAY_MSIZE
28-
# define BFDEV_ARRAY_MSIZE 32
27+
#ifndef BFDEV_ARRAY_MINSIZE
28+
# define BFDEV_ARRAY_MINSIZE 32
2929
#endif
3030

3131
typedef struct bfdev_array bfdev_array_t;

src/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ array_reqsize(bfdev_array_t *array, unsigned long count)
1515
unsigned long request;
1616
bfdev_size_t size;
1717

18-
request = bfdev_max(BFDEV_ARRAY_MSIZE, count);
18+
request = bfdev_max(BFDEV_ARRAY_MINSIZE, count);
1919
size = bfdev_pow2_roundup(request * array->cells);
2020

2121
return size;

0 commit comments

Comments
 (0)