X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ringbuffer.c;h=e6f03ee835a1c65bd2bdfca060dc0538f5f1e41a;hp=c45ed3fa21ba14f74c19459009b0e92affb634d2;hb=80541d0f045e1ed57332800eff9832e0a5b72ddf;hpb=002731cd3938f3be6b71651e56c062af1adcdec0 diff --git a/ringbuffer.c b/ringbuffer.c index c45ed3fa..e6f03ee8 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -1,11 +1,13 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file ringbuffer.c Simple ringbuffer implementation */ +#include + #include "para.h" #include "ringbuffer.h" #include "string.h" @@ -47,7 +49,7 @@ struct ringbuffer *ringbuffer_new(unsigned size) rb->entries = para_calloc(size * sizeof(void *)); rb->size = size; return rb; -}; +} /** * Add one entry to a ringbuffer. @@ -94,7 +96,7 @@ void *ringbuffer_get(struct ringbuffer *rb, int num) * * \param rb The ringbuffer identifier * - * This function always succeeds and never returns a number greater than the + * \return This function always succeeds. It returns a number less than the * size of the ring buffer. */ unsigned ringbuffer_filled(struct ringbuffer *rb)