4.3BSD-UWisc/src/usr.lib/librpcsvc/sprayxdr.c

Compare this file to the similar file:
Show the results in this format:

#ifndef lint
/* @(#)sprayxdr.c	2.1 86/04/14 NFSSRC */
static  char sccsid[] = "@(#)sprayxdr.c 1.1 86/02/05 Copyr 1985 Sun Micro";
#endif

/*
 * Copyright (c) 1985 by Sun Microsystems, Inc.
 */

#include <sys/time.h>
#include <rpc/rpc.h>
#include <rpcsvc/spray.h>

xdr_sprayarr(xdrsp, arrp)
	XDR *xdrsp;
	struct sprayarr *arrp;
{
	if (!xdr_bytes(xdrsp, &arrp->data, &arrp->lnth, SPRAYMAX))
		return(0);
}

xdr_spraycumul(xdrsp, cumulp)
	XDR *xdrsp;
	struct spraycumul *cumulp;
{
	if (!xdr_u_int(xdrsp, &cumulp->counter))
		return(0);
	if (!xdr_timeval(xdrsp, &cumulp->clock))
		return(0);
}