Module Name: src Committed By: christos Date: Wed Aug 23 19:17:59 UTC 2023
Modified Files: src/sys/compat/linux/common: linux_inotify.c Log Message: put variable length structure at the end, so that clang does not complain. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/common/linux_inotify.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux/common/linux_inotify.c diff -u src/sys/compat/linux/common/linux_inotify.c:1.3 src/sys/compat/linux/common/linux_inotify.c:1.4 --- src/sys/compat/linux/common/linux_inotify.c:1.3 Tue Aug 22 08:02:34 2023 +++ src/sys/compat/linux/common/linux_inotify.c Wed Aug 23 15:17:59 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_inotify.c,v 1.3 2023/08/22 12:02:34 christos Exp $ */ +/* $NetBSD: linux_inotify.c,v 1.4 2023/08/23 19:17:59 christos Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_inotify.c,v 1.3 2023/08/22 12:02:34 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_inotify.c,v 1.4 2023/08/23 19:17:59 christos Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -84,8 +84,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux_inotif struct inotify_entry { TAILQ_ENTRY(inotify_entry) ie_entries; + char ie_name[NAME_MAX + 1]; struct linux_inotify_event ie_event; - char ie_name[NAME_MAX+1]; }; struct inotify_dir_entries {