X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sideband.c;h=cd549ddccb9d98fe43a4605b2c9632f6804490ad;hb=610cb53b94af8e95326cd44b7845f35cffdb6bf3;hp=a5f191615b4582542e5408442c69cf5096d7eea3;hpb=a731a7c6e78fb137268b42062d9fb08b4e49a2c8;p=paraslash.git diff --git a/sideband.c b/sideband.c index a5f19161..cd549ddc 100644 --- a/sideband.c +++ b/sideband.c @@ -1,13 +1,8 @@ -/* - * Copyright (C) 2012-2014 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2012 Andre Noll , see file COPYING. */ /** \file sideband.c Implementation of the sideband API. */ #include -#include #include "para.h" #include "error.h" @@ -271,7 +266,7 @@ int sb_received(struct sb_context *c, size_t nbytes, struct sb_buffer *result) */ if (sbb->iov.iov_len == (size_t)-1) return -E_SB_PACKET_SIZE; - sbb->iov.iov_base = para_malloc(sbb->iov.iov_len + 1); + sbb->iov.iov_base = alloc(sbb->iov.iov_len + 1); return 0; /* ready to read body */ success: *result = c->sbb;