dd: code shrink
[oweals/busybox.git] / util-linux / blkid.c
index a9fd9f361f312d99a2c8bfe6224720536858594c..1bbc80311224ccc2706c3f4da200cdc3a171ef22 100644 (file)
 int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int blkid_main(int argc UNUSED_PARAM, char **argv)
 {
+       int scan_devices = 1;
+
        while (*++argv) {
                /* Note: bogus device names don't cause any error messages */
                add_to_uuid_cache(*argv);
+               scan_devices = 0;
        }
 
-       display_uuid_cache();
+       display_uuid_cache(scan_devices);
        return 0;
 }