summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 10:02:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 10:02:44 +0000
commitc09ca83b469460f0214b13a576bd112e823d4a08 (patch)
tree0df7a10c19c186675b76ddc3b649ba2f148f8c24 /libc/inet/rpc
parent94ecebc42368bd20dc671baaf397c136c530d09d (diff)
rpc: constify data, localize unnecessarily static data
text+data text+rodata rwdata bss filename - 2308 2284 24 24 libc/inet/rpc/clnt_unix.o + 2308 2308 0 0 libc/inet/rpc/clnt_unix.o
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/clnt_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c
index b412ccb7d..3a1e13c05 100644
--- a/libc/inet/rpc/clnt_unix.c
+++ b/libc/inet/rpc/clnt_unix.c
@@ -116,7 +116,7 @@ static bool_t clntunix_freeres (CLIENT *, xdrproc_t, caddr_t);
static bool_t clntunix_control (CLIENT *, int, char *);
static void clntunix_destroy (CLIENT *);
-static struct clnt_ops unix_ops =
+static const struct clnt_ops unix_ops =
{
clntunix_call,
clntunix_abort,
@@ -474,7 +474,7 @@ __msgread (int sock, void *data, size_t cnt)
struct iovec iov;
struct msghdr msg;
#ifdef SCM_CREDENTIALS
- static char cm[CMSG_SPACE(sizeof (struct ucred))];
+ /*static -why??*/ char cm[CMSG_SPACE(sizeof (struct ucred))];
#endif
int len;