lockd: constify nlmsvc_binding structure

The nlmsvc_binding structure is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
此提交包含在:
Julia Lawall
2015-12-23 22:25:13 +01:00
提交者 J. Bruce Fields
父節點 ea44463f37
當前提交 2a297450dd
共有 3 個檔案被更改,包括 3 行新增3 行删除

查看文件

@@ -58,7 +58,7 @@ nlm_fclose(struct file *filp)
fput(filp);
}
static struct nlmsvc_binding nfsd_nlm_ops = {
static const struct nlmsvc_binding nfsd_nlm_ops = {
.fopen = nlm_fopen, /* open file for locking */
.fclose = nlm_fclose, /* close file */
};