/* * Please do not edit this file. * It was generated using rpcgen. */ #include #include "mc.h" /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; int * add_1(argp, clnt) mypair *argp; CLIENT *clnt; { static int res; bzero((char *)&res, sizeof(res)); if (clnt_call(clnt, ADD, xdr_mypair, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&res); } int * subtract_1(argp, clnt) mypair *argp; CLIENT *clnt; { static int res; bzero((char *)&res, sizeof(res)); if (clnt_call(clnt, SUBTRACT, xdr_mypair, argp, xdr_int, &res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&res); }