Use -lrpcsvc for XDR

This commit is contained in:
brezak 1993-06-04 15:52:20 +00:00
parent 37e75f766c
commit 22507bf001
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,10 @@
# @(#)Makefile 5.8 (Berkeley) 7/28/90
PROG= yppasswd
NOMAN=
NOMAN= noman
BINDIR=/usr/bin
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
.include <bsd.prog.mk>

View File

@ -28,7 +28,7 @@
*/
#ifndef LINT
static char rcsid[] = "$Id: yppasswd.c,v 1.2 1993/05/16 02:49:05 deraadt Exp $";
static char rcsid[] = "$Id: yppasswd.c,v 1.3 1993/06/04 15:52:21 brezak Exp $";
#endif
#include <stdio.h>
@ -168,7 +168,7 @@ char **argv;
yppasswd.newpw.pw_shell = pw->pw_shell;
r = callrpc(master, YPPASSWDPROG, YPPASSWDVERS, YPPASSWDPROC_UPDATE,
xdr_passwd, &yppasswd, xdr_int, &status);
xdr_yppasswd, &yppasswd, xdr_int, &status);
if (r)
printf("Couldn't change NIS password.\n");
else