Explorar o código

netns: let net_generic take pointer-to-const args

This commit is same in nature as v2.6.37-rc1-755-g3654654; the network
namespace itself is not modified when calling net_generic, so the
parameter can be const.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jan Engelhardt %!s(int64=14) %!d(string=hai) anos
pai
achega
20a95a2169
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/net/netns/generic.h

+ 1 - 1
include/net/netns/generic.h

@@ -30,7 +30,7 @@ struct net_generic {
 	void *ptr[0];
 	void *ptr[0];
 };
 };
 
 
-static inline void *net_generic(struct net *net, int id)
+static inline void *net_generic(const struct net *net, int id)
 {
 {
 	struct net_generic *ng;
 	struct net_generic *ng;
 	void *ptr;
 	void *ptr;