summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-28 01:26:26 +0000
committerdim <dim@FreeBSD.org>2013-12-28 01:26:26 +0000
commitd66753f8cd8b164964561328a91d142ad5f620b3 (patch)
tree8ebb8d913788a084ddee2f689228b277a06d85a1 /sys/rpc
parent5b742ab9412cb41f920f2df0184322f2b4d41ddd (diff)
downloadFreeBSD-src-d66753f8cd8b164964561328a91d142ad5f620b3.zip
FreeBSD-src-d66753f8cd8b164964561328a91d142ad5f620b3.tar.gz
MFC r259842:
Remove some unused static const strings under sys/rpc, which have never been used since the initial commit (r177633). MFC r259843: Move a static const variable to the #if 0 part where it is only used. (Note the #if 0 part has been inactive since the initial commit, r177633, so maybe it should be removed altogether).
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/clnt_dg.c2
-rw-r--r--sys/rpc/clnt_vc.c5
-rw-r--r--sys/rpc/rpcb_clnt.c2
3 files changed, 1 insertions, 8 deletions
diff --git a/sys/rpc/clnt_dg.c b/sys/rpc/clnt_dg.c
index 4c1fe8c..2e09575 100644
--- a/sys/rpc/clnt_dg.c
+++ b/sys/rpc/clnt_dg.c
@@ -93,8 +93,6 @@ static struct clnt_ops clnt_dg_ops = {
.cl_control = clnt_dg_control
};
-static const char mem_err_clnt_dg[] = "clnt_dg_create: out of memory";
-
/*
* A pending RPC request which awaits a reply. Requests which have
* received their reply will have cr_xid set to zero and cr_mrep to
diff --git a/sys/rpc/clnt_vc.c b/sys/rpc/clnt_vc.c
index eec9f50..8f076eb 100644
--- a/sys/rpc/clnt_vc.c
+++ b/sys/rpc/clnt_vc.c
@@ -108,11 +108,6 @@ static struct clnt_ops clnt_vc_ops = {
static void clnt_vc_upcallsdone(struct ct_data *);
-static const char clnt_vc_errstr[] = "%s : %s";
-static const char clnt_vc_str[] = "clnt_vc_create";
-static const char clnt_read_vc_str[] = "read_vc";
-static const char __no_mem_str[] = "out of memory";
-
/*
* Create a client handle for a connection.
* Default options are set, which the user can change using clnt_control()'s.
diff --git a/sys/rpc/rpcb_clnt.c b/sys/rpc/rpcb_clnt.c
index d484df3..6d901d5 100644
--- a/sys/rpc/rpcb_clnt.c
+++ b/sys/rpc/rpcb_clnt.c
@@ -82,13 +82,13 @@ __FBSDID("$FreeBSD$");
#include <rpc/rpc_com.h>
static struct timeval tottimeout = { 60, 0 };
-static const struct timeval rmttimeout = { 3, 0 };
static const char nullstring[] = "\000";
static CLIENT *local_rpcb(void);
#if 0
+static const struct timeval rmttimeout = { 3, 0 };
static struct timeval rpcbrmttime = { 15, 0 };
#define CACHESIZE 6
OpenPOWER on IntegriCloud