--- libaitrpc/example/tcli_un.c 2015/06/25 22:39:05 1.1.2.2 +++ libaitrpc/example/tcli_un.c 2019/08/15 14:59:18 1.2.6.1 @@ -1,7 +1,10 @@ #include +#include +#include +#include #include #include -#include +#include #include "rc.h" @@ -57,7 +60,7 @@ int main(int argc, char **argv) printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); for (i = 0; i < 10; i++) { gettimeofday(&before, NULL); - if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { + if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr) == -1) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); rpc_cli_closeBLOBClient(&cli2); rpc_cli_closeClient(&cli);