diff options
author | Martin Mares <mj@ucw.cz> | 2008-11-11 01:09:49 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2008-11-11 01:09:49 +0100 |
commit | 7f0775708c7b7cee571921927c2e3aa356fe9f6c (patch) | |
tree | d860e7a182fbf26055e7299cb17aa027d52fd279 | |
parent | ace49a965f98751e83d047557fe9213c931ee7c1 (diff) | |
download | pciutils-7f0775708c7b7cee571921927c2e3aa356fe9f6c.tar.gz |
Exit correctly after `setpci --version'.
-rw-r--r-- | setpci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] == '-') |