summaryrefslogtreecommitdiff
path: root/src/detect-virt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect-virt.c')
-rw-r--r--src/detect-virt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/detect-virt.c b/src/detect-virt.c
index 324f182c7e..79cad5d8ab 100644
--- a/src/detect-virt.c
+++ b/src/detect-virt.c
@@ -25,9 +25,10 @@
#include <string.h>
#include "util.h"
+#include "virt.h"
int main(int argc, char *argv[]) {
- int r;
+ Virtualization r;
const char *id;
/* This is mostly intended to be used for scripts which want
@@ -43,5 +44,5 @@ int main(int argc, char *argv[]) {
if (r > 0)
puts(id);
- return r == 0;
+ return r > 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}