X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ringbuffer.c;h=0e706f0f1ad6e906732f3bc95e8b653da53f9a6d;hb=4ce5b6570ed83ef2ab5296f369f147593507286b;hp=2ea2592fee990a0417eabe7099abf479cb72f7ec;hpb=4d9d588c5df359c3c5f279fbfd4ea51d3a2afc87;p=paraslash.git diff --git a/ringbuffer.c b/ringbuffer.c index 2ea2592f..0e706f0f 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006-2014 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 */ @@ -45,8 +41,8 @@ struct ringbuffer */ struct ringbuffer *ringbuffer_new(unsigned size) { - struct ringbuffer *rb = para_calloc(sizeof(struct ringbuffer)); - rb->entries = para_calloc(size * sizeof(void *)); + struct ringbuffer *rb = zalloc(sizeof(struct ringbuffer)); + rb->entries = zalloc(size * sizeof(void *)); rb->size = size; return rb; }