Date: Sun, 13 Mar 2022 14:43:42 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 02fc4e319c86 - main - cache: use flexible array member Message-ID: <202203131443.22DEhg9I015275@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=02fc4e319c86bce7c7661daffb3705b0680e9ed2 commit 02fc4e319c86bce7c7661daffb3705b0680e9ed2 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-13 14:42:20 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-13 14:43:35 +0000 cache: use flexible array member ... instead of 0-sizing the array --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 254b5d4d1b69..13c84791583e 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -277,7 +277,7 @@ struct namecache { } n_un; u_char nc_flag; /* flag bits */ u_char nc_nlen; /* length of name */ - char nc_name[0]; /* segment name + nul */ + char nc_name[]; /* segment name + nul */ }; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203131443.22DEhg9I015275>