From 09450e82e292bf3a30c8d1628e85c62001704b0a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 18 Mar 2011 19:34:00 +0100 Subject: rpc: remove unused USE_IN_LIBIO guarded code Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/inet/rpc/xdr.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'libc/inet/rpc/xdr.c') diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c index d07607cf8..57d7dbd40 100644 --- a/libc/inet/rpc/xdr.c +++ b/libc/inet/rpc/xdr.c @@ -49,11 +49,6 @@ static char sccsid[] = "@(#)xdr.c 1.35 87/08/12"; #include #include -#ifdef USE_IN_LIBIO -# include -#endif - - /* * constants specific to the xdr "protocol" */ @@ -562,12 +557,7 @@ xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize) } if (sp == NULL) { -#ifdef USE_IN_LIBIO - if (_IO_fwide (stderr, 0) > 0) - (void) fwprintf (stderr, L"%s", _("xdr_bytes: out of memory\n")); - else -#endif - (void) fputs (_("xdr_bytes: out of memory\n"), stderr); + (void) fputs (_("xdr_bytes: out of memory\n"), stderr); return FALSE; } /* fall into ... */ @@ -704,13 +694,7 @@ xdr_string (XDR *xdrs, char **cpp, u_int maxsize) *cpp = sp = (char *) mem_alloc (nodesize); if (sp == NULL) { -#ifdef USE_IN_LIBIO - if (_IO_fwide (stderr, 0) > 0) - (void) fwprintf (stderr, L"%s", - _("xdr_string: out of memory\n")); - else -#endif - (void) fputs (_("xdr_string: out of memory\n"), stderr); + (void) fputs (_("xdr_string: out of memory\n"), stderr); return FALSE; } sp[size] = 0; -- cgit v1.2.3