X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ringbuffer.c;h=76e2d7afc8ab7caea1207a36c37c8b6452af2816;hp=c45ed3fa21ba14f74c19459009b0e92affb634d2;hb=7a7da3d96a171a3758ea1ee0e4272b8e71d90abe;hpb=6bdac07456cb5872f824028912d1049883a9c21f diff --git a/ringbuffer.c b/ringbuffer.c index c45ed3fa..76e2d7af 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -1,11 +1,9 @@ -/* - * Copyright (C) 2006-2009 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file ringbuffer.c Simple ringbuffer implementation */ +#include + #include "para.h" #include "ringbuffer.h" #include "string.h" @@ -47,7 +45,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 +92,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)