Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/bfdev/buff.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ struct bfdev_buff {
#define BFDEV_BUFF_INIT(len, data) \
(bfdev_buff_t) BFDEV_BUFF_STATIC(len, data)

#define BFDEV_DFEINF_BUFF(name, len, data) \
#define BFDEV_DEFINE_BUFF(name, len, data) \
bfdev_buff_t name = BFDEV_BUFF_INIT(len, data)

#define BFDEV_DEFINE_STRING(name, str) \
BFDEV_DFEINF_BUFF(name, sizeof(str) - 1, str)
BFDEV_DEFINE_BUFF(name, sizeof(str) - 1, str)

static inline void
bfdev_buff_init(bfdev_buff_t *buff, bfdev_size_t len, void *data)
Expand Down
Loading