Remove extra whitespace at the end of some lines.
[dragonfly.git] / contrib / libpam / modules / pam_unix / yppasswd_xdr.c
1 /* 
2  * yppasswdd
3  * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@monad.swb.de>
4  *
5  * This program is covered by the GNU General Public License, version 2.
6  * It is provided in the hope that it is useful. However, the author
7  * disclaims ALL WARRANTIES, expressed or implied. See the GPL for details.
8  * 
9  * This file was generated automatically by rpcgen from yppasswd.x, and
10  * editied manually.
11  * $FreeBSD: src/contrib/libpam/modules/pam_unix/yppasswd_xdr.c,v 1.1.1.1.2.2 2001/06/11 15:28:30 markm Exp $
12  * $DragonFly: src/contrib/libpam/modules/pam_unix/Attic/yppasswd_xdr.c,v 1.2 2003/06/17 04:24:03 dillon Exp $
13  */
14
15 #include <security/_pam_aconf.h>
16
17 #include <rpc/rpc.h>
18 #include <rpcsvc/yp_prot.h>
19 #include <rpcsvc/ypclnt.h>
20 #include "yppasswd.h"
21
22 bool_t
23 xdr_xpasswd(XDR * xdrs, xpasswd * objp)
24 {
25         return xdr_string(xdrs, &objp->pw_name, ~0)
26             && xdr_string(xdrs, &objp->pw_passwd, ~0)
27             && xdr_int(xdrs, &objp->pw_uid)
28             && xdr_int(xdrs, &objp->pw_gid)
29             && xdr_string(xdrs, &objp->pw_gecos, ~0)
30             && xdr_string(xdrs, &objp->pw_dir, ~0)
31             && xdr_string(xdrs, &objp->pw_shell, ~0);
32 }
33
34
35 bool_t
36 xdr_yppasswd(XDR * xdrs, yppasswd * objp)
37 {
38         return xdr_string(xdrs, &objp->oldpass, ~0)
39             && xdr_xpasswd(xdrs, &objp->newpw);
40 }