summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMike Frysinger2005-05-11 00:39:03 +0000
committerMike Frysinger2005-05-11 00:39:03 +0000
commit348e84c202c4946d3694f130a6f81f61eb1d4b9e (patch)
tree0f8cea7ac869802aadea4346d73f122041adad5b /libbb
parent55e2cf6533582ba0e795176103df0df22436b230 (diff)
downloadbusybox-348e84c202c4946d3694f130a6f81f61eb1d4b9e.zip
busybox-348e84c202c4946d3694f130a6f81f61eb1d4b9e.tar.gz
change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt_ulflags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c
index b6a3526..6197e8d 100644
--- a/libbb/getopt_ulflags.c
+++ b/libbb/getopt_ulflags.c
@@ -155,10 +155,10 @@ Special characters:
if specified together. In this case you must set
bb_opt_complementaly = "b~cf:c~bf:f~bc". If two of the
mutually exclusive options are found, bb_getopt_ulflags's
- return value will have the error flag set (0x80000000UL) so
+ return value will have the error flag set (BB_GETOPT_ERROR) so
that we can check for it:
- if (flags & 0x80000000UL)
+ if (flags & BB_GETOPT_ERROR)
bb_show_usage();
"*" A star after a char in bb_opt_complementaly means that the
@@ -280,7 +280,7 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...)
bb_show_usage ();
}
if(flags & on_off->incongruously)
- flags |= 0x80000000UL;
+ flags |= BB_GETOPT_ERROR;
flags &= ~on_off->switch_off;
flags |= on_off->switch_on;
if(on_off->list_flg) {