From 67cc54d757c106c29d0172b918a9dde0ffa3bddf Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 20 Mar 2001 01:36:41 +0000 Subject: Included in the updated version of tirpc's sm_inter.x Sun added the SM_NOTIFY procedure. Remove our hand-coded one as it was causing world breakage for worlds compiled with NOSHARED=yes because the static linker is a bit less forgiving (or not as broken as) our dynamic linker. Add $FreeBSD$ while I'm here. Pointed out by: bde --- usr.sbin/rpc.statd/file.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/rpc.statd/file.c b/usr.sbin/rpc.statd/file.c index b8fc5cc..42d49c3 100644 --- a/usr.sbin/rpc.statd/file.c +++ b/usr.sbin/rpc.statd/file.c @@ -29,6 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $FreeBSD$ + * */ #include @@ -207,29 +209,6 @@ void init_file(char *filename) } } -/* xdr_stat_chge ----------------------------------------------------------- */ -/* - Purpose: XDR-encode structure of type stat_chge - Returns: TRUE if successful - Notes: This function is missing from librpcsvc, because the - sm_inter.x distributed by Sun omits the SM_NOTIFY - procedure used between co-operating statd's -*/ - -bool_t xdr_stat_chge(XDR *xdrs, stat_chge *objp) -{ - if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) - { - return (FALSE); - } - if (!xdr_int(xdrs, &objp->state)) - { - return (FALSE); - } - return (TRUE); -} - - /* notify_one_host --------------------------------------------------------- */ /* Purpose: Perform SM_NOTIFY procedure at specified host -- cgit v1.1