diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-01 19:08:52 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-02 08:02:28 +0100 |
commit | 50aba30aee11d4fa51948c6ba258ec0bbdbae8c0 (patch) | |
tree | 84cdec45cf2982a4e3778bc391dcdcae14bd78d0 /libc/inet/rpc/svc_simple.c | |
parent | ed10e944ac7f9b4d55dc130987274a2799a115b1 (diff) |
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.
Diffstat (limited to 'libc/inet/rpc/svc_simple.c')
-rw-r--r-- | libc/inet/rpc/svc_simple.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |