1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 12:56:32 +00:00

Fix bugs in async rpc

This commit is contained in:
plt
2011-09-14 21:55:05 +08:00
parent e4d932f0c0
commit 60ec606453
4 changed files with 15 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ typedef struct {
/* rpc_priv is used by the rpc_client to store information related to
* this rpc call. */
static int transport_send(void *arg, const char *fcall_str,
static int transport_send(void *arg, char *fcall_str,
size_t fcall_len, void *rpc_priv)
{
TcpTransport *trans = arg;
@@ -49,6 +49,7 @@ static int transport_send(void *arg, const char *fcall_str,
}
trans->rpc_priv = rpc_priv;
g_free (fcall_str);
return 0;
}