From b52aae1d934b006830e7d575e56e2a98b0765ad3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Sep 2011 17:00:33 +0200 Subject: util: move virtualization detection into its own files, and extend return codes --- src/detect-virt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/detect-virt.c') 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 #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; } -- cgit v1.2.3-54-g00ecf