sbin/newfs_msdos: Explicitly exit() instead of return in main()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 30 Mar 2020 13:49:40 +0000 (22:49 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 30 Mar 2020 13:49:40 +0000 (22:49 +0900)
from freebsd/freebsd@7a057d0def567bc80b1ba4101d3823d92cbc979c

sbin/newfs_msdos/newfs_msdos.c

index 8b61d87..913fbde 100644 (file)
@@ -185,7 +185,7 @@ main(int argc, char *argv[])
            err(1, NULL);
     }
     dtype = *argv;
-    return !!mkfs_msdos(fname, dtype, &o);
+    exit(!!mkfs_msdos(fname, dtype, &o));
 }
 
 /*