Skip to content

Commit

Permalink
netns: let net_generic take pointer-to-const args
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Nov 21, 2010
1 parent bbce5a5 commit 20a95a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/netns/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct net_generic {
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;
void *ptr;
Expand Down

0 comments on commit 20a95a2

Please sign in to comment.