NetBSD/usr.sbin/ypserv/common/ypresp_xdr.c

33 lines
614 B
C

/* $NetBSD: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $ */
/*
* This file was originally generated with rpcgen, then modified
* by Jason R. Thorpe <thorpej@NetBSD.org>.
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $");
#endif
#include <sys/types.h>
#include <rpc/rpc.h>
#include <rpc/xdr.h>
#include <rpcsvc/yp_prot.h>
#include "ypdef.h"
bool_t
xdr_ypresp_xfr(XDR *xdrs, struct ypresp_xfr *objp)
{
if (!xdr_u_int(xdrs, &objp->transid))
return FALSE;
if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
return FALSE;
return TRUE;
}