return rpc;
}
-void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth)
+void rpc_set_auth(struct rpc_context *rpc, AUTH *auth)
{
if (rpc->auth != NULL) {
auth_destroy(rpc->auth);
}
- rpc->auth = (AUTH *)auth;
+ rpc->auth = auth;
}
}
}
-int rpc_add_fragment(struct rpc_context *rpc, char *data, size_t size)
+int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size)
{
struct rpc_fragment *fragment;