diff options
author | alfred <alfred@FreeBSD.org> | 2001-03-20 01:36:41 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-03-20 01:36:41 +0000 |
commit | 67cc54d757c106c29d0172b918a9dde0ffa3bddf (patch) | |
tree | d1a1bc3c9bf252b1ba1c873000502ba42d53e1bf /usr.sbin/rpc.statd | |
parent | 3e0cbfbda1820ae16970cf256661fbe35acd3006 (diff) | |
download | FreeBSD-src-67cc54d757c106c29d0172b918a9dde0ffa3bddf.zip FreeBSD-src-67cc54d757c106c29d0172b918a9dde0ffa3bddf.tar.gz |
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
Diffstat (limited to 'usr.sbin/rpc.statd')
-rw-r--r-- | usr.sbin/rpc.statd/file.c | 25 |
1 files changed, 2 insertions, 23 deletions
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 <err.h> @@ -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 |