Browse Source

adapt to fixed PARENTCALL

next
Georg Hopp 11 years ago
parent
commit
8786d47892
  1. 6
      src/http/request.c
  2. 4
      src/http/response.c

6
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

4
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

Loading…
Cancel
Save