GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/yppasswd.c Lines: 0 20 0.0 %
Date: 2017-11-13 Branches: 0 18 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "yppasswd.h"
7
8
bool_t
9
xdr_x_passwd(XDR *xdrs, x_passwd *objp)
10
{
11
12
13
	if (!xdr_string(xdrs, &objp->pw_name, ~0))
14
		return (FALSE);
15
	if (!xdr_string(xdrs, &objp->pw_passwd, ~0))
16
		return (FALSE);
17
	if (!xdr_int(xdrs, &objp->pw_uid))
18
		return (FALSE);
19
	if (!xdr_int(xdrs, &objp->pw_gid))
20
		return (FALSE);
21
	if (!xdr_string(xdrs, &objp->pw_gecos, ~0))
22
		return (FALSE);
23
	if (!xdr_string(xdrs, &objp->pw_dir, ~0))
24
		return (FALSE);
25
	if (!xdr_string(xdrs, &objp->pw_shell, ~0))
26
		return (FALSE);
27
	return (TRUE);
28
}
29
30
bool_t
31
xdr_yppasswd(XDR *xdrs, yppasswd *objp)
32
{
33
34
35
	if (!xdr_string(xdrs, &objp->oldpass, ~0))
36
		return (FALSE);
37
	if (!xdr_x_passwd(xdrs, &objp->newpw))
38
		return (FALSE);
39
	return (TRUE);
40
}