summaryrefslogtreecommitdiffstats
path: root/net/x25
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2017-08-02 11:35:00 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-03 09:13:51 -0700
commite9e6c2329a518d43a4734b26349bb19d8dfd7e6b (patch)
tree57385d88a26b0f683056ca756923ecdd76a6e32c /net/x25
parent5a4d148f0d781129137c790936e3ced767987daf (diff)
downloadlinux-e9e6c2329a518d43a4734b26349bb19d8dfd7e6b.tar.gz
linux-e9e6c2329a518d43a4734b26349bb19d8dfd7e6b.tar.bz2
linux-e9e6c2329a518d43a4734b26349bb19d8dfd7e6b.zip
X25: constify null_x25_address
null_x25_address is only used to access the string it contains, so it can be const. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
-rw-r--r--net/x25/af_x25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index 5a1a98df3499..ac095936552d 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -74,7 +74,7 @@ DEFINE_RWLOCK(x25_list_lock);
static const struct proto_ops x25_proto_ops;
-static struct x25_address null_x25_address = {" "};
+static const struct x25_address null_x25_address = {" "};
#ifdef CONFIG_COMPAT
struct compat_x25_subscrip_struct {