syl's projects
/
dragonfly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow the kernel to be compile without KTRACE option.
[dragonfly.git]
/
sys
/
kern
/
sys_generic.c
diff --git
a/sys/kern/sys_generic.c
b/sys/kern/sys_generic.c
index
88ebdf4
..
5403dec
100644
(file)
--- a/
sys/kern/sys_generic.c
+++ b/
sys/kern/sys_generic.c
@@
-252,10
+252,10
@@
kern_preadv(int fd, struct uio *auio, int flags, size_t *res)
static int
dofileread(int fd, struct file *fp, struct uio *auio, int flags, size_t *res)
{
- struct thread *td = curthread;
int error;
size_t len;
#ifdef KTRACE
+ struct thread *td = curthread;
struct iovec *ktriov = NULL;
struct uio ktruio;
#endif