summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2008-11-11 01:09:49 +0100
committerMartin Mares <mj@ucw.cz>2008-11-11 01:09:49 +0100
commit7f0775708c7b7cee571921927c2e3aa356fe9f6c (patch)
treed860e7a182fbf26055e7299cb17aa027d52fd279
parentace49a965f98751e83d047557fe9213c931ee7c1 (diff)
downloadpciutils-7f0775708c7b7cee571921927c2e3aa356fe9f6c.tar.gz
Exit correctly after `setpci --version'.
-rw-r--r--setpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setpci.c b/setpci.c
index 56ecb2b..0aea25b 100644
--- a/setpci.c
+++ b/setpci.c
@@ -357,7 +357,7 @@ parse_options(int argc, char **argv)
if (argc == 2 && !strcmp(argv[1], "--version"))
{
puts("setpci version " PCIUTILS_VERSION);
- return 0;
+ exit(0);
}
while (i < argc && argv[i][0] == '-')