mirror of
https://github.com/samba-team/samba.git
synced 2025-09-16 01:44:21 +03:00
committed by
Gerald (Jerry) Carter
parent
e232ec6394
commit
18daf6ec4d
@@ -79,11 +79,16 @@ static BOOL test_addone(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
static void irpc_callback(struct irpc_request *irpc)
|
static void irpc_callback(struct irpc_request *irpc)
|
||||||
{
|
{
|
||||||
|
struct echo_AddOne *r = irpc->r;
|
||||||
int *pong_count = (int *)irpc->async.private;
|
int *pong_count = (int *)irpc->async.private;
|
||||||
NTSTATUS status = irpc_call_recv(irpc);
|
NTSTATUS status = irpc_call_recv(irpc);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
printf("irpc call failed - %s\n", nt_errstr(status));
|
printf("irpc call failed - %s\n", nt_errstr(status));
|
||||||
}
|
}
|
||||||
|
if (*r->out.out_data != r->in.in_data + 1) {
|
||||||
|
printf("AddOne wrong answer - %u + 1 = %u should be %u\n",
|
||||||
|
r->in.in_data, *r->out.out_data, r->in.in_data+1);
|
||||||
|
}
|
||||||
(*pong_count)++;
|
(*pong_count)++;
|
||||||
talloc_free(irpc);
|
talloc_free(irpc);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user