diff options
author | Mike Frysinger | 2005-05-11 00:39:03 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-05-11 00:39:03 +0000 |
commit | 348e84c202c4946d3694f130a6f81f61eb1d4b9e (patch) | |
tree | 0f8cea7ac869802aadea4346d73f122041adad5b /coreutils | |
parent | 55e2cf6533582ba0e795176103df0df22436b230 (diff) | |
download | busybox-348e84c202c4946d3694f130a6f81f61eb1d4b9e.zip busybox-348e84c202c4946d3694f130a6f81f61eb1d4b9e.tar.gz |
change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cut.c | 2 | ||||
-rw-r--r-- | coreutils/date.c | 2 | ||||
-rw-r--r-- | coreutils/id.c | 2 | ||||
-rw-r--r-- | coreutils/install.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index d26e80e..e5fb5af 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c @@ -300,7 +300,7 @@ extern int cut_main(int argc, char **argv) part = opt & (OPT_BYTE_FLGS|OPT_CHAR_FLGS|OPT_FIELDS_FLGS); if(part == 0) bb_error_msg_and_die("you must specify a list of bytes, characters, or fields"); - if(opt & 0x80000000UL) + if(opt & BB_GETOPT_ERROR) bb_error_msg_and_die("only one type of list may be specified"); parse_lists(sopt); if((opt & (OPT_DELIM_FLGS))) { diff --git a/coreutils/date.c b/coreutils/date.c index 3608df6..513aade 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -166,7 +166,7 @@ int date_main(int argc, char **argv) bb_error_msg_and_die(bb_msg_memory_exhausted); } use_arg = opt & DATE_OPT_DATE; - if(opt & 0x80000000UL) + if(opt & BB_GETOPT_ERROR) bb_show_usage(); #ifdef CONFIG_FEATURE_DATE_ISOFMT if(opt & DATE_OPT_TIMESPEC) { diff --git a/coreutils/id.c b/coreutils/id.c index 541c3d1..6360491 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -64,7 +64,7 @@ extern int id_main(int argc, char **argv) bb_opt_complementaly = "u~g:g~u"; flags = bb_getopt_ulflags(argc, argv, "rnug"); - if ((flags & 0x80000000UL) + if ((flags & BB_GETOPT_ERROR) /* Don't allow -n -r -nr */ || (flags <= 3 && flags > 0) /* Don't allow more than one username */ diff --git a/coreutils/install.c b/coreutils/install.c index 36dc1d6..345e75a 100644 --- a/coreutils/install.c +++ b/coreutils/install.c @@ -69,7 +69,7 @@ extern int install_main(int argc, char **argv) flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */ /* Check valid options were given */ - if(flags & 0x80000000UL) { + if(flags & BB_GETOPT_ERROR) { bb_show_usage(); } |