From c09ca83b469460f0214b13a576bd112e823d4a08 Mon Sep 17 00:00:00 2001
From: Denis Vlasenko <vda.linux@googlemail.com>
Date: Mon, 1 Dec 2008 10:02:44 +0000
Subject: 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
---
 include/rpc/clnt.h | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'include/rpc')

diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h
index 72801e382..0dcadcb5a 100644
--- a/include/rpc/clnt.h
+++ b/include/rpc/clnt.h
@@ -132,6 +132,10 @@ struct rpc_err {
 typedef struct CLIENT CLIENT;
 struct CLIENT {
   AUTH	*cl_auth;		 /* authenticator */
+  /* not sure whether non-const-ness is a part of the spec... if it is,
+   * enclose "const" in #ifdef UCLIBC_INTERNAL / #endif
+   * to make it effective only for libc compile */
+  const
   struct clnt_ops {
     enum clnt_stat (*cl_call) (CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t,
 			       caddr_t, struct timeval);
-- 
cgit v1.2.3