Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>

* sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
This commit is contained in:
Roland McGrath 1996-06-26 06:13:37 +00:00
parent 23586dcc72
commit be64fe6d86

View file

@ -6,23 +6,23 @@
* may copy or modify Sun RPC without charge, but are not authorized * may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to anyone else except as part of a product or * to license or distribute it to anyone else except as part of a product or
* program developed by the user. * program developed by the user.
* *
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
* *
* Sun RPC is provided with no support and without any obligation on the * Sun RPC is provided with no support and without any obligation on the
* part of Sun Microsystems, Inc. to assist in its use, correction, * part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement. * modification or enhancement.
* *
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
* OR ANY PART THEREOF. * OR ANY PART THEREOF.
* *
* In no event will Sun Microsystems, Inc. be liable for any lost revenue * In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if * or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages. * Sun has been advised of the possibility of such damages.
* *
* Sun Microsystems, Inc. * Sun Microsystems, Inc.
* 2550 Garcia Avenue * 2550 Garcia Avenue
* Mountain View, California 94043 * Mountain View, California 94043
@ -69,7 +69,7 @@ xdr_free(proc, objp)
char *objp; char *objp;
{ {
XDR x; XDR x;
x.x_op = XDR_FREE; x.x_op = XDR_FREE;
(*proc)(&x, objp); (*proc)(&x, objp);
} }
@ -119,10 +119,13 @@ xdr_int(xdrs, ip)
} else if (sizeof (int) == sizeof (short)) { } else if (sizeof (int) == sizeof (short)) {
return (xdr_short(xdrs, (short *)ip)); return (xdr_short(xdrs, (short *)ip));
} else { } else {
abort (); /* roland@gnu */
#if 0
/* force unresolved reference (link-time error): */ /* force unresolved reference (link-time error): */
extern unexpected_sizes_in_xdr_int (); extern unexpected_sizes_in_xdr_int ();
unexpected_sizes_in_xdr_int(); unexpected_sizes_in_xdr_int();
#endif
} }
#endif #endif
} }
@ -600,8 +603,8 @@ xdr_string(xdrs, cpp, maxsize)
return (FALSE); return (FALSE);
} }
/* /*
* Wrapper for xdr_string that can be called directly from * Wrapper for xdr_string that can be called directly from
* routines like clnt_call * routines like clnt_call
*/ */
bool_t bool_t