change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)

This commit is contained in:
Mike Frysinger
2005-05-11 00:39:03 +00:00
parent 55e2cf6533
commit 348e84c202
11 changed files with 13 additions and 12 deletions

View File

@@ -70,7 +70,7 @@ extern int ar_main(int argc, char **argv)
bb_opt_complementaly = "p~tx:t~px:x~pt";
opt = bb_getopt_ulflags(argc, argv, "ptxovcr");
if ((opt & 0x80000000UL) || (opt == 0) || (optind == argc)) {
if ((opt & BB_GETOPT_ERROR) || (opt == 0) || (optind == argc)) {
bb_show_usage();
}