X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdetect-virt.c;h=79cad5d8ab5281f38402bdc4807040a17df66d01;hp=324f182c7e5cae3fd36355b4a93d664892b7c5f3;hb=6bc1ce40e531257ae8dd9bbbbcb48e5de0a1187b;hpb=65bc2c21140d20e757b0aed9bb23286939426abb diff --git a/src/detect-virt.c b/src/detect-virt.c index 324f182c7..79cad5d8a 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; }