]> mj.ucw.cz Git - pciutils.git/blobdiff - setpci.c
Exit correctly after `setpci --version'.
[pciutils.git] / setpci.c
index 56ecb2b54a18531e6ae0af1592a972d854b724b2..0aea25b7004dd63ee4c3223abeb6655c513bd8ee 100644 (file)
--- 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] == '-')