[Lguest] [PATCH] lguest: constify function pointer tables

Jan Engelhardt jengelh at computergmbh.de
Wed Jan 23 06:49:54 EST 2008


Signed-off-by: Jan Engelhardt <jengelh at computergmbh.de>
---
 drivers/lguest/lguest_user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c
index 3b92a61..9069da2 100644
--- a/drivers/lguest/lguest_user.c
+++ b/drivers/lguest/lguest_user.c
@@ -285,7 +285,7 @@ static int close(struct inode *inode, struct file *file)
  * We begin our understanding with the Host kernel interface which the Launcher
  * uses: reading and writing a character device called /dev/lguest.  All the
  * work happens in the read(), write() and close() routines: */
-static struct file_operations lguest_fops = {
+static const struct file_operations lguest_fops = {
 	.owner	 = THIS_MODULE,
 	.release = close,
 	.write	 = write,
-- 
1.5.3.4




More information about the Lguest mailing list