From 4b297bc4dc5caf004bec918d9f6702313aadf11b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 5 Mar 2016 22:46:03 +0100 Subject: [PATCH] cbuf_make -> cbuf_create --- circbuf/README.md | 2 +- circbuf/circbuf.c | 2 +- circbuf/circbuf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circbuf/README.md b/circbuf/README.md index 96263c0..e13803a 100644 --- a/circbuf/README.md +++ b/circbuf/README.md @@ -30,7 +30,7 @@ CircBuf *cb; // buffer instance void main() { - cb = cbuf_make(32, sizeof(char)); // create a char buffer of size 32. + cb = cbuf_create(32, sizeof(char)); // create a char buffer of size 32. // now it's ready for use! diff --git a/circbuf/circbuf.c b/circbuf/circbuf.c index 65d214e..2b048bd 100644 --- a/circbuf/circbuf.c +++ b/circbuf/circbuf.c @@ -46,7 +46,7 @@ static void read_buffer(const CircBuf *cb, size_t index, void *dest) /** Create a cbuf */ -CircBuf *cbuf_make(size_t capacity, size_t elem_size) +CircBuf *cbuf_create(size_t capacity, size_t elem_size) { // add one, because one is always unused. capacity++; diff --git a/circbuf/circbuf.h b/circbuf/circbuf.h index 6e83f4f..4e73f59 100644 --- a/circbuf/circbuf.h +++ b/circbuf/circbuf.h @@ -37,7 +37,7 @@ typedef struct circbuf_struct CircBuf; * @param elem_size : size of one element * @return pointer to the buffer instance */ -CircBuf *cbuf_make(size_t capacity, size_t elem_size); +CircBuf *cbuf_create(size_t capacity, size_t elem_size); /**