git: 9623b69b1dc3 - stable/14 - file: The f_ops table pointer can be a pointer to const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Nov 2024 14:31:20 UTC
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9623b69b1dc3040f532ff1731a577b63afec9b10 commit 9623b69b1dc3040f532ff1731a577b63afec9b10 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-11-04 19:38:33 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-11-19 14:15:07 +0000 file: The f_ops table pointer can be a pointer to const No functional change intended. MFC after: 2 weeks (cherry picked from commit c477d8974374402a16a42f5d62fbda19070a12a3) --- 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 bfc2c6ab4652..c1439b9bbaac 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -188,7 +188,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 */