X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ringbuffer.c;h=0e706f0f1ad6e906732f3bc95e8b653da53f9a6d;hb=910cf7680d7a00daa68ab250003f9d800972fbe5;hp=2ea2592fee990a0417eabe7099abf479cb72f7ec;hpb=36ec2a43a7d9c085f16544e282a439cdbaec1e00;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; }