chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-event: fix typo
[elogind.git]
/
src
/
detect-virt
/
detect-virt.c
diff --git
a/src/detect-virt/detect-virt.c
b/src/detect-virt/detect-virt.c
index d25c48ebfeab2e9d0c3bfe18e4111c34f5c9b327..606d073cbcf7b0a68ed5db069f3784744422a7ca 100644
(file)
--- a/
src/detect-virt/detect-virt.c
+++ b/
src/detect-virt/detect-virt.c
@@
-22,7
+22,6
@@
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
-#include <string.h>
#include <getopt.h>
#include "util.h"
#include <getopt.h>
#include "util.h"
@@
-131,7
+130,7
@@
int main(int argc, char *argv[]) {
v = detect_virtualization(&id);
if (v < 0) {
v = detect_virtualization(&id);
if (v < 0) {
- log_error_errno(
-
v, "Failed to check for virtualization: %m");
+ log_error_errno(v, "Failed to check for virtualization: %m");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
@@
-142,7
+141,7
@@
int main(int argc, char *argv[]) {
case ONLY_CONTAINER:
r = detect_container(&id);
if (r < 0) {
case ONLY_CONTAINER:
r = detect_container(&id);
if (r < 0) {
- log_error_errno(
-
r, "Failed to check for container: %m");
+ log_error_errno(r, "Failed to check for container: %m");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
@@
-152,7
+151,7
@@
int main(int argc, char *argv[]) {
case ONLY_VM:
r = detect_vm(&id);
if (r < 0) {
case ONLY_VM:
r = detect_vm(&id);
if (r < 0) {
- log_error_errno(
-
r, "Failed to check for vm: %m");
+ log_error_errno(r, "Failed to check for vm: %m");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}