chiark / gitweb /
virt: move caching of virtualization check results into detect_vm() and detect_contai...
[elogind.git] / src / detect-virt / detect-virt.c
index bd3ee452c12e67e1696423cc5fd3bc84160de189..72ff2a858542efe55ecf40c33ae69c530c3c0404 100644 (file)
@@ -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