Deleted Added
full compact
svc_simple.c (75094) svc_simple.c (90271)
1/* $NetBSD: svc_simple.c,v 1.20 2000/07/06 03:10:35 christos Exp $ */
1/* $NetBSD: svc_simple.c,v 1.20 2000/07/06 03:10:35 christos Exp $ */
2/* $FreeBSD: head/lib/libc/rpc/svc_simple.c 75094 2001-04-02 21:41:44Z iedowse $ */
2/* $FreeBSD: head/lib/libc/rpc/svc_simple.c 90271 2002-02-05 23:43:43Z alfred $ */
3
4/*
5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
6 * unrestricted use provided that this legend is included on all tape
7 * media and as a part of the software program in whole or part. Users
8 * may copy or modify Sun RPC without charge, but are not authorized
9 * to license or distribute it to anyone else except as part of a product or
10 * program developed by the user.

--- 117 unchanged lines hidden (view full) ---

128 SVCXPRT *svcxprt;
129 int madenow;
130 u_int recvsz;
131 char *xdrbuf;
132 char *netid;
133
134 madenow = FALSE;
135 svcxprt = NULL;
3
4/*
5 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
6 * unrestricted use provided that this legend is included on all tape
7 * media and as a part of the software program in whole or part. Users
8 * may copy or modify Sun RPC without charge, but are not authorized
9 * to license or distribute it to anyone else except as part of a product or
10 * program developed by the user.

--- 117 unchanged lines hidden (view full) ---

128 SVCXPRT *svcxprt;
129 int madenow;
130 u_int recvsz;
131 char *xdrbuf;
132 char *netid;
133
134 madenow = FALSE;
135 svcxprt = NULL;
136 for (pl = proglst; pl; pl = pl->p_nxt)
136 recvsz = 0;
137 xdrbuf = netid = NULL;
138 for (pl = proglst; pl; pl = pl->p_nxt) {
137 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
138 svcxprt = pl->p_transp;
139 xdrbuf = pl->p_xdrbuf;
140 recvsz = pl->p_recvsz;
141 netid = pl->p_netid;
142 break;
143 }
139 if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
140 svcxprt = pl->p_transp;
141 xdrbuf = pl->p_xdrbuf;
142 recvsz = pl->p_recvsz;
143 netid = pl->p_netid;
144 break;
145 }
146 }
144
145 if (svcxprt == NULL) {
146 struct __rpc_sockinfo si;
147
148 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0);
149 if (svcxprt == NULL)
150 continue;
151 if (!__rpc_fd2sockinfo(svcxprt->xp_fd, &si)) {

--- 156 unchanged lines hidden ---
147
148 if (svcxprt == NULL) {
149 struct __rpc_sockinfo si;
150
151 svcxprt = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0);
152 if (svcxprt == NULL)
153 continue;
154 if (!__rpc_fd2sockinfo(svcxprt->xp_fd, &si)) {

--- 156 unchanged lines hidden ---