diff options
author | peter <peter@FreeBSD.org> | 2008-11-30 21:04:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2008-11-30 21:04:53 +0000 |
commit | 2b1f03929a1b2aede23598bc1b54f8061c22fd69 (patch) | |
tree | 89c32c2d64cf6f632d3ca2dc85169ed5109b5f29 | |
parent | 343bde97065f4c35293558594e5b36627ef8ccb7 (diff) | |
download | FreeBSD-src-2b1f03929a1b2aede23598bc1b54f8061c22fd69.zip FreeBSD-src-2b1f03929a1b2aede23598bc1b54f8061c22fd69.tar.gz |
Properly wrap this giant block of duplicate code inside COMPAT_FREEBSD7
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index d4d84e6..11fa1c2 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2509,7 +2509,6 @@ sysctl_kern_file(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD, 0, 0, sysctl_kern_file, "S,xfile", "Entire file table"); - /* * Sadly, the libgtop port has already been compiled for 7.1, but the code * does not do enough error checking and bad things might happen. Even @@ -2524,6 +2523,7 @@ SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD, CTASSERT(sizeof(struct kinfo_ofile) == KINFO_OFILE_SIZE); #endif +#ifdef COMPAT_FREEBSD7 static int export_vnode_for_osysctl(struct vnode *vp, int type, struct kinfo_ofile *kif, struct filedesc *fdp, struct sysctl_req *req) @@ -2766,7 +2766,7 @@ sysctl_kern_proc_ofiledesc(SYSCTL_HANDLER_ARGS) static SYSCTL_NODE(_kern_proc, KERN_PROC_OFILEDESC, ofiledesc, CTLFLAG_RD, sysctl_kern_proc_ofiledesc, "Process ofiledesc entries"); - +#endif /* COMPAT_FREEBSD7 */ #ifdef KINFO_FILE_SIZE CTASSERT(sizeof(struct kinfo_file) == KINFO_FILE_SIZE); |