svn commit: r316598 - head/sys/kern
Conrad Meyer
cem at FreeBSD.org
Fri Apr 7 05:00:14 UTC 2017
Author: cem
Date: Fri Apr 7 05:00:09 2017
New Revision: 316598
URL: https://svnweb.freebsd.org/changeset/base/316598
Log:
kern_descrip: Move kinfo_ofile size assert under COMPAT_FREEBSD7
The size and structure are not used outside of FreeBSD 7 compatibility ABIs.
Sponsored by: Dell EMC Isilon
Modified:
head/sys/kern/kern_descrip.c
Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c Fri Apr 7 02:31:55 2017 (r316597)
+++ head/sys/kern/kern_descrip.c Fri Apr 7 05:00:09 2017 (r316598)
@@ -3573,11 +3573,11 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER
return (error != 0 ? error : error2);
}
+#ifdef COMPAT_FREEBSD7
#ifdef KINFO_OFILE_SIZE
CTASSERT(sizeof(struct kinfo_ofile) == KINFO_OFILE_SIZE);
#endif
-#ifdef COMPAT_FREEBSD7
static void
kinfo_to_okinfo(struct kinfo_file *kif, struct kinfo_ofile *okif)
{
More information about the svn-src-all
mailing list