From 22507bf0015f33cbacc771772476d924bd5c7e1b Mon Sep 17 00:00:00 2001 From: brezak Date: Fri, 4 Jun 1993 15:52:20 +0000 Subject: [PATCH] Use -lrpcsvc for XDR --- usr.sbin/yp/yppasswd/Makefile | 5 ++++- usr.sbin/yp/yppasswd/yppasswd.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.sbin/yp/yppasswd/Makefile b/usr.sbin/yp/yppasswd/Makefile index 46046574434e..86765bc275c4 100644 --- a/usr.sbin/yp/yppasswd/Makefile +++ b/usr.sbin/yp/yppasswd/Makefile @@ -1,7 +1,10 @@ # @(#)Makefile 5.8 (Berkeley) 7/28/90 PROG= yppasswd -NOMAN= +NOMAN= noman BINDIR=/usr/bin +DPADD= ${LIBRPCSVC} +LDADD= -lrpcsvc + .include diff --git a/usr.sbin/yp/yppasswd/yppasswd.c b/usr.sbin/yp/yppasswd/yppasswd.c index 53c904e539b9..8326968125f3 100644 --- a/usr.sbin/yp/yppasswd/yppasswd.c +++ b/usr.sbin/yp/yppasswd/yppasswd.c @@ -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 @@ -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