1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8873: add more checks

metze
This commit is contained in:
Stefan Metzmacher 2005-07-31 23:55:10 +00:00 committed by Gerald (Jerry) Carter
parent 2c36b64dcc
commit bfc855d78f

View File

@ -79,11 +79,16 @@ static BOOL test_addone(TALLOC_CTX *mem_ctx,
static void irpc_callback(struct irpc_request *irpc)
{
struct echo_AddOne *r = irpc->r;
int *pong_count = (int *)irpc->async.private;
NTSTATUS status = irpc_call_recv(irpc);
if (!NT_STATUS_IS_OK(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)++;
talloc_free(irpc);
}