use toplevel ARFLAGS and update default ARFLAGS to be quiet
[oweals/busybox.git] / util-linux / losetup.c
index bfeb6b27461ea225594a19fe614b5d38c87aa87e..c94456522e8bf9d908a74f0fa7133b6c3d56356b 100644 (file)
@@ -39,17 +39,18 @@ losetup_main (int argc, char **argv)
        break;
 
       case 'o':
-       offset = parse_number (optarg, NULL);
+       offset = bb_xparse_number (optarg, NULL);
        break;
 
       default:
-       show_usage ();
+       bb_show_usage();
       }
 
   if ((delete && (offset || optind + 1 != argc))
       || (!delete && optind + 2 != argc))
-    show_usage ();
+    bb_show_usage();
 
+  opt = 0;
   if (delete)
     return del_loop (argv[optind]) ? EXIT_SUCCESS : EXIT_FAILURE;
   else