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
This commit is contained in:
parent
e8fb32c10a
commit
9dc8f703d1
@ -3573,11 +3573,11 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS)
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user