diff options
Diffstat (limited to 'lib/libc/rpc/svc_udp.c')
| -rw-r--r-- | lib/libc/rpc/svc_udp.c | 40 | 
1 files changed, 20 insertions, 20 deletions
| diff --git a/lib/libc/rpc/svc_udp.c b/lib/libc/rpc/svc_udp.c index e69318ca2f69..58a90fa6e0fe 100644 --- a/lib/libc/rpc/svc_udp.c +++ b/lib/libc/rpc/svc_udp.c @@ -5,23 +5,23 @@   * may copy or modify Sun RPC without charge, but are not authorized   * to license or distribute it to anyone else except as part of a product or   * program developed by the user. - *  + *   * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE   * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR   * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - *  + *   * Sun RPC is provided with no support and without any obligation on the   * part of Sun Microsystems, Inc. to assist in its use, correction,   * modification or enhancement. - *  + *   * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE   * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC   * OR ANY PART THEREOF. - *  + *   * In no event will Sun Microsystems, Inc. be liable for any lost revenue   * or profits or other special, indirect and consequential damages, even if   * Sun has been advised of the possibility of such damages. - *  + *   * Sun Microsystems, Inc.   * 2550 Garcia Avenue   * Mountain View, California  94043 @@ -30,7 +30,7 @@  #if defined(LIBC_SCCS) && !defined(lint)  /*static char *sccsid = "from: @(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";*/  /*static char *sccsid = "from: @(#)svc_udp.c	2.2 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: svc_udp.c,v 1.1 1994/08/07 18:36:12 wollman Exp $"; +static char *rcsid = "$Id: svc_udp.c,v 1.2 1994/08/31 12:38:18 csgr Exp $";  #endif  /* @@ -164,7 +164,7 @@ svcudp_stat(xprt)  	SVCXPRT *xprt;  { -	return (XPRT_IDLE);  +	return (XPRT_IDLE);  }  static bool_t @@ -204,8 +204,8 @@ svcudp_recv(xprt, msg)  static bool_t  svcudp_reply(xprt, msg) -	register SVCXPRT *xprt;  -	struct rpc_msg *msg;  +	register SVCXPRT *xprt; +	struct rpc_msg *msg;  {  	register struct svcudp_data *su = su_data(xprt);  	register XDR *xdrs = &(su->su_xdrs); @@ -284,7 +284,7 @@ svcudp_destroy(xprt)  	(type *) mem_alloc((unsigned) (sizeof(type) * (size)))  #define BZERO(addr, type, size)	 \ -	bzero((char *) addr, sizeof(type) * (int) (size))  +	bzero((char *) addr, sizeof(type) * (int) (size))  /*   * An entry in the cache @@ -307,7 +307,7 @@ struct cache_node {  	/*   	 * Next node on the list, if there is a collision  	 */ -	cache_ptr cache_next;	 +	cache_ptr cache_next;  }; @@ -331,11 +331,11 @@ struct udp_cache {   * the hashing function   */  #define CACHE_LOC(transp, xid)	\ - (xid % (SPARSENESS*((struct udp_cache *) su_data(transp)->su_cache)->uc_size))	 + (xid % (SPARSENESS*((struct udp_cache *) su_data(transp)->su_cache)->uc_size))  /* - * Enable use of the cache.  + * Enable use of the cache.   * Note: there is no disable.   */  svcudp_enablecache(transp, size) @@ -347,7 +347,7 @@ svcudp_enablecache(transp, size)  	if (su->su_cache != NULL) {  		CACHE_PERROR("enablecache: cache already enabled"); -		return(0);	 +		return(0);  	}  	uc = ALLOC(struct udp_cache, 1);  	if (uc == NULL) { @@ -379,9 +379,9 @@ svcudp_enablecache(transp, size)  static void  cache_set(xprt, replylen)  	SVCXPRT *xprt; -	u_long replylen;	 +	u_long replylen;  { -	register cache_ptr victim;	 +	register cache_ptr victim;  	register cache_ptr *vicp;  	register struct svcudp_data *su = su_data(xprt);  	struct udp_cache *uc = (struct udp_cache *) su->su_cache; @@ -395,9 +395,9 @@ cache_set(xprt, replylen)  	victim = uc->uc_fifo[uc->uc_nextvictim];  	if (victim != NULL) {  		loc = CACHE_LOC(xprt, victim->cache_xid); -		for (vicp = &uc->uc_entries[loc];  -		  *vicp != NULL && *vicp != victim;  -		  vicp = &(*vicp)->cache_next)  +		for (vicp = &uc->uc_entries[loc]; +		  *vicp != NULL && *vicp != victim; +		  vicp = &(*vicp)->cache_next)  				;  		if (*vicp == NULL) {  			CACHE_PERROR("cache_set: victim not found"); @@ -431,7 +431,7 @@ cache_set(xprt, replylen)  	victim->cache_prog = uc->uc_prog;  	victim->cache_addr = uc->uc_addr;  	loc = CACHE_LOC(xprt, victim->cache_xid); -	victim->cache_next = uc->uc_entries[loc];	 +	victim->cache_next = uc->uc_entries[loc];  	uc->uc_entries[loc] = victim;  	uc->uc_fifo[uc->uc_nextvictim++] = victim;  	uc->uc_nextvictim %= uc->uc_size; | 
