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
This commit is contained in:
parent
895e96279a
commit
4c96ae1554
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74499
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user