/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 * GPI: Done a couple of casts to make sure that the compiler
 *      does not generate error message when using -Wall
 *      compilation flag.
 */

#include <rpc/rpc.h>
#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,(xdrproc_t) xdr_mypair, 
		      (char *)argp, (xdrproc_t)xdr_int, 
		      (char *)&res, TIMEOUT) != RPC_SUCCESS) {
		return (NULL);
	}
printf("clnt_call has returned\n");
	return (&res);
}

int *
subtract_1(argp, clnt)
	mypair *argp;
	CLIENT *clnt;
{
	static int res;

	bzero((char *)&res, sizeof(res));
	if (clnt_call(clnt, SUBTRACT, (xdrproc_t) xdr_mypair, 
		      (char *)argp, (xdrproc_t)xdr_int, 
		      (char *)&res, TIMEOUT) != RPC_SUCCESS) {
		return (NULL);
	}
printf("clnt_call has returned\n");
	return (&res);
}


