From 7272bb6c7e96e3a2ada3f92802d4f8b7c7c23fa4 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 11 Aug 2014 20:39:42 +0100 Subject: [PATCH] adapt to fixed PARENTCALL --- src/http/request.c | 6 +++--- src/http/response.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/http/request.c b/src/http/request.c index dc46fe9..99f9513 100644 --- a/src/http/request.c +++ b/src/http/request.c @@ -44,7 +44,7 @@ httpRequestCtor(void * _this, va_list * params) uri = va_arg(* params, char *); ulen = va_arg(* params, size_t); - TR_PARENTCALL(_this, TR_Class, ctor, params); + TR_PARENTCALL(HttpRequest, _this, TR_Class, ctor, params); this->method = TR_malloc(mlen + 1); this->method[mlen] = 0; @@ -61,7 +61,7 @@ httpRequestCtor(void * _this, va_list * params) TR_MEM_FREE(this->method); TR_MEM_FREE(this->path); /** \todo looks like path is not used at all */ - TR_PARENTCALL(_this, TR_Class, dtor); + TR_PARENTCALL(HttpRequest, _this, TR_Class, dtor); return -1; } @@ -87,7 +87,7 @@ httpRequestDtor(void * _this) TR_MEM_FREE(this->method); TR_MEM_FREE(this->path); - TR_PARENTCALL(_this, TR_Class, dtor); + TR_PARENTCALL(HttpRequest, _this, TR_Class, dtor); } static diff --git a/src/http/response.c b/src/http/response.c index e1a6519..e4bad03 100644 --- a/src/http/response.c +++ b/src/http/response.c @@ -38,7 +38,7 @@ httpResponseCtor(void * _this, va_list * params) HttpResponse this = _this; char * reason; - TR_PARENTCALL(_this, TR_Class, ctor, params); + TR_PARENTCALL(TR_Response, _this, TR_Class, ctor, params); this->status = va_arg(* params, unsigned int); reason = va_arg(* params, char *); @@ -57,7 +57,7 @@ httpResponseDtor(void * _this) TR_MEM_FREE(this->reason); - TR_PARENTCALL(_this, TR_Class, dtor); + TR_PARENTCALL(TR_Response, _this, TR_Class, dtor); } static