diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-11 00:39:03 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-11 00:39:03 +0000 |
commit | 801eb19ab9a2f7225f03434957d5fd1c76919cc0 (patch) | |
tree | 0f8cea7ac869802aadea4346d73f122041adad5b /libbb | |
parent | 92285b9e71a77a02e3b1eb81dc00c5db0faf07ea (diff) | |
download | busybox-w32-801eb19ab9a2f7225f03434957d5fd1c76919cc0.tar.gz busybox-w32-801eb19ab9a2f7225f03434957d5fd1c76919cc0.tar.bz2 busybox-w32-801eb19ab9a2f7225f03434957d5fd1c76919cc0.zip |
change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)
git-svn-id: svn://busybox.net/trunk/busybox@10289 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/getopt_ulflags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index b6a35261d..6197e8d9f 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c | |||
@@ -155,10 +155,10 @@ Special characters: | |||
155 | if specified together. In this case you must set | 155 | if specified together. In this case you must set |
156 | bb_opt_complementaly = "b~cf:c~bf:f~bc". If two of the | 156 | bb_opt_complementaly = "b~cf:c~bf:f~bc". If two of the |
157 | mutually exclusive options are found, bb_getopt_ulflags's | 157 | mutually exclusive options are found, bb_getopt_ulflags's |
158 | return value will have the error flag set (0x80000000UL) so | 158 | return value will have the error flag set (BB_GETOPT_ERROR) so |
159 | that we can check for it: | 159 | that we can check for it: |
160 | 160 | ||
161 | if (flags & 0x80000000UL) | 161 | if (flags & BB_GETOPT_ERROR) |
162 | bb_show_usage(); | 162 | bb_show_usage(); |
163 | 163 | ||
164 | "*" A star after a char in bb_opt_complementaly means that the | 164 | "*" 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, ...) | |||
280 | bb_show_usage (); | 280 | bb_show_usage (); |
281 | } | 281 | } |
282 | if(flags & on_off->incongruously) | 282 | if(flags & on_off->incongruously) |
283 | flags |= 0x80000000UL; | 283 | flags |= BB_GETOPT_ERROR; |
284 | flags &= ~on_off->switch_off; | 284 | flags &= ~on_off->switch_off; |
285 | flags |= on_off->switch_on; | 285 | flags |= on_off->switch_on; |
286 | if(on_off->list_flg) { | 286 | if(on_off->list_flg) { |