History

SUNRPC: constify the rpc_program

Trond Myklebust committed 14 years ago

Commit a613fa11 parent 080b79417 files · +54 −54Browse files

Showing the changes to include/linux/lockd (2 of 17 files). Show all

Unified · Split

2 files
  1. include/linux/lockd/lockd.h +1 −1
  2. include/linux/lockd/xdr4.h +1 −1
include/linux/lockd/lockd.h+1−1
@@ -188,7 +188,7 @@ struct nlm_block { · 187 unmodified lines
188188 /*
189189 * Global variables
190190 */
191−extern struct rpc_program nlm_program;
191+extern const struct rpc_program nlm_program;
192192 extern struct svc_procedure nlmsvc_procedures[];
193193 #ifdef CONFIG_LOCKD_V4
194194 extern struct svc_procedure nlmsvc_procedures4[];
include/linux/lockd/xdr4.h+1−1
@@ -42,6 +42,6 @@ int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *); · 41 unmodified lines
4242 int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *);
4343 int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
4444 */
45−extern struct rpc_version nlm_version4;
45+extern const struct rpc_version nlm_version4;
4646
4747 #endif /* LOCKD_XDR4_H */