Browse Source

fix pass of variable argument list

1.0.0
Georg Hopp 11 years ago
parent
commit
68bd42e389
  1. 4
      src/i_protocol.c

4
src/i_protocol.c

@ -48,7 +48,7 @@ TR_protoCreateRequest(void * _this, TR_Socket remote, ...)
va_list params; va_list params;
va_start(params, remote); va_start(params, remote);
TR_RETCALL(_this, TR_Protocol, createRequest, callret, params);
TR_RETCALL(_this, TR_Protocol, createRequest, callret, &params);
if (callret != NULL) { if (callret != NULL) {
callret->remote = remote; callret->remote = remote;
} }
@ -64,7 +64,7 @@ TR_protoCreateResponse(void * _this, TR_Socket remote, ...)
va_list params; va_list params;
va_start(params, remote); va_start(params, remote);
TR_RETCALL(_this, TR_Protocol, createResponse, callret, params);
TR_RETCALL(_this, TR_Protocol, createResponse, callret, &params);
if (callret != NULL) { if (callret != NULL) {
callret->remote = remote; callret->remote = remote;
} }

Loading…
Cancel
Save