--- libaitrpc/example/tcliext.c 2015/01/21 21:14:50 1.1.2.3 +++ libaitrpc/example/tcliext.c 2020/06/25 19:11:00 1.4 @@ -1,8 +1,10 @@ #include #include +#include +#include #include #include -#include +#include #include "rc.h" @@ -42,7 +44,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_closeClient2(&cli); return 127;