chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
silence a bunch of gcc warnings
[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 a83fb3ced52059501ab6beae0c08edbfc6f99eb8..8b8fc45ea0d61f4ad7d5076788f7adc199fe47a9 100644
(file)
--- a/
src/detect-virt/detect-virt.c
+++ b/
src/detect-virt/detect-virt.c
@@
-115,7
+115,8
@@
static int parse_argv(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
const char *id = NULL;
- int retval, r;
+ int r;
+ int retval = EXIT_SUCCESS;
/* This is mostly intended to be used for scripts which want
* to detect whether we are being run in a virtualized