The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c477d8974374402a16a42f5d62fbda19070a12a3

commit c477d8974374402a16a42f5d62fbda19070a12a3
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2024-11-04 19:38:33 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2024-11-04 19:38:33 +0000

    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 6d1b8b8e1df4..820ad1015573 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 */

Reply via email to