/* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include #include #include "ll.h" /* remote procedure that sums the ints in the linked list */ int * sum_1_svc(foo *argp, struct svc_req *rqstp) { static int result; result=0; while (argp) { result += argp->x; argp = argp->next; } return (&result); }