libds

a collection of simple data structures
Log | Files | Refs | LICENSE

commit f2112b77860c9db123e022524d502d4ffdd29abb
parent 41d68480466147ad3dc75260e69a3321cf978fcb
Author: sin <sin@2f30.org>
Date:   Tue,  8 Apr 2014 10:19:23 +0100

Be consistent with naming

Diffstat:
Mds.h | 4++--
Mfifo.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ds.h b/ds.h @@ -14,7 +14,7 @@ void vector_walk(struct vector *, void (*)(struct vector *, void *)); /* fifo.c */ struct fifo *fifo_init(size_t); void fifo_free(struct fifo *); -int fifo_enqueue(struct fifo *, const void *, size_t) -int fifo_dequeue(struct fifo *, void *, size_t); +int fifo_add(struct fifo *, const void *, size_t) +int fifo_remove(struct fifo *, void *, size_t); #endif diff --git a/fifo.c b/fifo.c @@ -35,7 +35,7 @@ fifo_free(struct fifo *fifo) } int -fifo_enqueue(struct fifo *fifo, const void *buf, size_t sz) +fifo_add(struct fifo *fifo, const void *buf, size_t sz) { void *tmp; @@ -57,7 +57,7 @@ fifo_enqueue(struct fifo *fifo, const void *buf, size_t sz) } int -fifo_dequeue(struct fifo *fifo, void *buf, size_t sz) +fifo_remove(struct fifo *fifo, void *buf, size_t sz) { if (!sz) return 0;