From c477d8974374402a16a42f5d62fbda19070a12a3 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 4 Nov 2024 19:38:33 +0000 Subject: [PATCH] file: The f_ops table pointer can be a pointer to const No functional change intended. MFC after: 2 weeks --- sys/sys/file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/file.h b/sys/sys/file.h index 6d1b8b8e1df..820ad101557 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -186,7 +186,7 @@ struct file { volatile u_int f_flag; /* see fcntl.h */ volatile u_int f_count; /* reference count */ void *f_data; /* file descriptor specific data */ - struct fileops *f_ops; /* File operations */ + const struct fileops *f_ops; /* File operations */ struct vnode *f_vnode; /* NULL or applicable vnode */ struct ucred *f_cred; /* associated credentials. */ short f_type; /* descriptor type */