From: Martin Mares Date: Tue, 11 Nov 2008 00:09:49 +0000 (+0100) Subject: Exit correctly after `setpci --version'. X-Git-Tag: v3.1-alpha1~12 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7f0775708c7b7cee571921927c2e3aa356fe9f6c;p=pciutils.git Exit correctly after `setpci --version'. --- 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] == '-')