From 746d0019f275acc0d3752b54e8ae1930a2f5fa3c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 7 Dec 2005 02:42:58 +0000 Subject: No more *xdr* jump relocations --- libc/inet/rpc/xdr_reference.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libc/inet/rpc/xdr_reference.c') diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c index 177c25059..478c8e906 100644 --- a/libc/inet/rpc/xdr_reference.c +++ b/libc/inet/rpc/xdr_reference.c @@ -40,6 +40,8 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI"; * "pointers". See xdr.h for more info on the interface to xdr. */ +#define xdr_bool __xdr_bool + #define __FORCE_GLIBC #define _GNU_SOURCE #include @@ -66,12 +68,8 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI"; * size is the size of the referneced structure. * proc is the routine to handle the referenced structure. */ -bool_t -xdr_reference (xdrs, pp, size, proc) - XDR *xdrs; - caddr_t *pp; /* the pointer to work on */ - u_int size; /* size of the object pointed to */ - xdrproc_t proc; /* xdr routine to handle the object */ +bool_t attribute_hidden +__xdr_reference (XDR *xdrs, caddr_t *pp, u_int size, xdrproc_t proc) { caddr_t loc = *pp; bool_t stat; @@ -110,7 +108,7 @@ xdr_reference (xdrs, pp, size, proc) } return stat; } - +strong_alias(__xdr_reference,xdr_reference) /* * xdr_pointer(): @@ -151,5 +149,5 @@ xdr_pointer (xdrs, objpp, obj_size, xdr_obj) *objpp = NULL; return TRUE; } - return xdr_reference (xdrs, objpp, obj_size, xdr_obj); + return __xdr_reference (xdrs, objpp, obj_size, xdr_obj); } -- cgit v1.2.3