From 50aba30aee11d4fa51948c6ba258ec0bbdbae8c0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 1 Dec 2016 19:08:52 +0100 Subject: remove libintl stub and libintl.h header As __UCLIBC_HAS_GETTEXT_AWARENESS__ is never defined, this is mostly dead code. It is planned to integrate libiconv-tiny and gettext-tiny into uClibc-ng after the next release, so that more software packages can be used without modification. Remove any _/_N macro usage. --- libc/inet/rpc/svc_simple.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libc/inet/rpc/svc_simple.c') diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c index c770938a1..4c27eaeb7 100644 --- a/libc/inet/rpc/svc_simple.c +++ b/libc/inet/rpc/svc_simple.c @@ -80,7 +80,7 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum, if (procnum == NULLPROC) { - (void) asprintf (&buf, _("can't reassign procedure number %ld\n"), + (void) asprintf (&buf, "can't reassign procedure number %ld\n", NULLPROC); goto err_out; } @@ -89,7 +89,7 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum, transp = svcudp_create (RPC_ANYSOCK); if (transp == NULL) { - buf = strdup (_("couldn't create an rpc server\n")); + buf = strdup ("couldn't create an rpc server\n"); goto err_out; } } @@ -97,14 +97,14 @@ registerrpc (u_long prognum, u_long versnum, u_long procnum, if (!svc_register (transp, (u_long) prognum, (u_long) versnum, universal, IPPROTO_UDP)) { - (void) asprintf (&buf, _("couldn't register prog %ld vers %ld\n"), + (void) asprintf (&buf, "couldn't register prog %ld vers %ld\n", prognum, versnum); goto err_out; } pl = (struct proglst_ *) malloc (sizeof (struct proglst_)); if (pl == NULL) { - buf = strdup (_("registerrpc: out of memory\n")); + buf = strdup ("registerrpc: out of memory\n"); goto err_out; } pl->p_progname = progname; @@ -162,7 +162,7 @@ universal (struct svc_req *rqstp, SVCXPRT *transp_l) if (!svc_sendreply (transp_l, pl->p_outproc, outdata)) { (void) asprintf (&buf, - _("trouble replying to prog %d\n"), + "trouble replying to prog %d\n", pl->p_prognum); exit (1); } @@ -170,7 +170,7 @@ universal (struct svc_req *rqstp, SVCXPRT *transp_l) (void) svc_freeargs (transp_l, pl->p_inproc, xdrbuf); return; } - (void) asprintf (&buf, _("never registered prog %d\n"), prog); + (void) asprintf (&buf, "never registered prog %d\n", prog); fputs (buf, stderr); free (buf); exit (1); -- cgit v1.2.3