Skip to content
Snippets Groups Projects
Commit d2dc6539 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix syntax error.

parent 4ae3cf51
No related branches found
No related tags found
No related merge requests found
...@@ -107,10 +107,10 @@ struct state *state_new(struct config *config, ...@@ -107,10 +107,10 @@ struct state *state_new(struct config *config,
state->sockets = NULL; state->sockets = NULL;
#if defined(__FreeBSD__) #if defined(__FreeBSD__)
len = sizeof(vm_guest); len = sizeof(vm_guest);
if (sysctlbyname("kern.vm_guest", vm, &len, NULL , 0) < 0) { if (sysctlbyname("kern.vm_guest", vm_guest, &len, NULL , 0) < 0) {
state->is_vm = false; state->is_vm = false;
} else { } else {
if (strncmp(vm, "none", len) == 0) { if (strncmp(vm_guest, "none", len) == 0) {
state->is_vm = false; state->is_vm = false;
} else { } else {
state->is_vm = true; state->is_vm = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment