/*
- * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2013 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file ringbuffer.c Simple ringbuffer implementation */
+#include <regex.h>
+
#include "para.h"
#include "ringbuffer.h"
#include "string.h"
rb->entries = para_calloc(size * sizeof(void *));
rb->size = size;
return rb;
-};
+}
/**
* Add one entry to a ringbuffer.
*
* \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)