summaryrefslogtreecommitdiff
path: root/src/detect-virt/detect-virt.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-31 16:23:06 +0100
committerLennart Poettering <lennart@poettering.net>2013-10-31 16:24:14 +0100
commit0fb533a53359cb8d034ec926638896b93f4fa839 (patch)
tree13932e77c86ac25873847f5fb4920a3e0c3bf1d4 /src/detect-virt/detect-virt.c
parentc9197a76ae552991b99673d104019e0940d6ad84 (diff)
virt: move caching of virtualization check results into detect_vm() and detect_container()
After all, we ended up calling detect_container() more often than detect_virtualization(), hence the former one should cache the results, since the latter is only a wrapper around the former.
Diffstat (limited to 'src/detect-virt/detect-virt.c')
-rw-r--r--src/detect-virt/detect-virt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detect-virt/detect-virt.c b/src/detect-virt/detect-virt.c
index bd3ee452c1..72ff2a8585 100644
--- a/src/detect-virt/detect-virt.c
+++ b/src/detect-virt/detect-virt.c
@@ -114,8 +114,8 @@ static int parse_argv(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
const char *id = NULL;
- int r;
int retval = EXIT_SUCCESS;
+ int r;
/* This is mostly intended to be used for scripts which want
* to detect whether we are being run in a virtualized