s4:irpc: avoid c++ reserved word 'private'
[metze/samba/wip.git] / source4 / lib / messaging / tests / irpc.c
index 42a811d1161eaf71c3a08ff902d52340e2d9b363..3eb23e0f7d53c90681b4791736391fc3cceb466f 100644 (file)
@@ -145,7 +145,7 @@ static bool test_echodata(struct torture_context *tctx,
 static void irpc_callback(struct irpc_request *irpc)
 {
        struct echo_AddOne *r = (struct echo_AddOne *)irpc->r;
-       int *pong_count = (int *)irpc->async.private;
+       int *pong_count = (int *)irpc->async.private_data;
        NTSTATUS status = irpc_call_recv(irpc);
        if (!NT_STATUS_IS_OK(status)) {
                printf("irpc call failed - %s\n", nt_errstr(status));
@@ -186,7 +186,7 @@ static bool test_speed(struct torture_context *tctx,
                torture_assert(tctx, irpc != NULL, "AddOne send failed");
 
                irpc->async.fn = irpc_callback;
-               irpc->async.private = &pong_count;
+               irpc->async.private_data = &pong_count;
 
                ping_count++;