summaryrefslogtreecommitdiff
path: root/srcx/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'srcx/util.c')
-rw-r--r--srcx/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/srcx/util.c b/srcx/util.c
index 8d5e145..31ee3bd 100644
--- a/srcx/util.c
+++ b/srcx/util.c
@@ -142,7 +142,7 @@ done:
return jid;
}
-kvm_t open_kvm_handle(char* jail, char* errbuf)
+kvm_t* open_kvm_handle(const char* jail, char* errbuf)
{
/*
* Basically the kvm routines won't work in a jail unless there's
@@ -184,11 +184,11 @@ kvm_t open_kvm_handle(char* jail, char* errbuf)
{
warn("%s%scouldn't create %s directory",
jail ? jail : "", jail ? ": " : "", _PATH_DEV);
- nofile = 0;
+ nonull = 0;
}
}
- if(nofile)
+ if(nonull)
{
mode_t mode = 0666 | S_IFCHR;
dev_t dev = makedev(2, 2);