aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/clnt_perr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/clnt_perr.c')
-rw-r--r--sunrpc/clnt_perr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c
index 24b15c04c6..55d38153b9 100644
--- a/sunrpc/clnt_perr.c
+++ b/sunrpc/clnt_perr.c
@@ -292,22 +292,24 @@ clnt_spcreateerror (const char *msg)
char *str = _buf ();
char *cp;
int len;
+ struct rpc_createerr *ce;
if (str == NULL)
return NULL;
+ ce = &get_rpc_createerr ();
len = sprintf (str, "%s: ", msg);
cp = str + len;
- cp = stpcpy (cp, clnt_sperrno (rpc_createerr.cf_stat));
- switch (rpc_createerr.cf_stat)
+ cp = stpcpy (cp, clnt_sperrno (ce->cf_stat));
+ switch (ce->cf_stat)
{
case RPC_PMAPFAILURE:
cp = stpcpy (stpcpy (cp, " - "),
- clnt_sperrno (rpc_createerr.cf_error.re_status));
+ clnt_sperrno (ce->cf_error.re_status));
break;
case RPC_SYSTEMERROR:
cp = stpcpy (stpcpy (cp, " - "),
- __strerror_r (rpc_createerr.cf_error.re_errno,
+ __strerror_r (ce->cf_error.re_errno,
chrbuf, sizeof chrbuf));
break;
default: