rpcdb_clnt.c 560 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #include <memory.h> /* for memset */
  6. #include "rpcdb.h"
  7. /* Default timeout can be changed using clnt_control() */
  8. static struct timeval TIMEOUT = { 25, 0 };
  9. response *
  10. rpc_call_1(request *argp, CLIENT *clnt)
  11. {
  12. static response clnt_res;
  13. memset((char *)&clnt_res, 0, sizeof(clnt_res));
  14. if (clnt_call (clnt, rpc_call,
  15. (xdrproc_t) xdr_request, (caddr_t) argp,
  16. (xdrproc_t) xdr_response, (caddr_t) &clnt_res,
  17. TIMEOUT) != RPC_SUCCESS) {
  18. return (NULL);
  19. }
  20. return (&clnt_res);
  21. }