aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-11 00:39:03 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-05-11 00:39:03 +0000
commit801eb19ab9a2f7225f03434957d5fd1c76919cc0 (patch)
tree0f8cea7ac869802aadea4346d73f122041adad5b /archival
parent92285b9e71a77a02e3b1eb81dc00c5db0faf07ea (diff)
downloadbusybox-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 'archival')
-rw-r--r--archival/ar.c2
-rw-r--r--archival/dpkg_deb.c2
-rw-r--r--archival/tar.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/archival/ar.c b/archival/ar.c
index bbdf2fddc..8326aa6de 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -70,7 +70,7 @@ extern int ar_main(int argc, char **argv)
70 bb_opt_complementaly = "p~tx:t~px:x~pt"; 70 bb_opt_complementaly = "p~tx:t~px:x~pt";
71 opt = bb_getopt_ulflags(argc, argv, "ptxovcr"); 71 opt = bb_getopt_ulflags(argc, argv, "ptxovcr");
72 72
73 if ((opt & 0x80000000UL) || (opt == 0) || (optind == argc)) { 73 if ((opt & BB_GETOPT_ERROR) || (opt == 0) || (optind == argc)) {
74 bb_show_usage(); 74 bb_show_usage();
75 } 75 }
76 76
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index 5aa9881d5..b95ec2d6e 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -88,7 +88,7 @@ extern int dpkg_deb_main(int argc, char **argv)
88 argcount = 2; 88 argcount = 2;
89 } 89 }
90 90
91 if ((optind + argcount != argc) || (opt & 0x80000000UL)) { 91 if ((optind + argcount != argc) || (opt & BB_GETOPT_ERROR)) {
92 bb_show_usage(); 92 bb_show_usage();
93 } 93 }
94 94
diff --git a/archival/tar.c b/archival/tar.c
index 950e21dd3..b2a212397 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -724,7 +724,7 @@ int tar_main(int argc, char **argv)
724 ); 724 );
725 725
726 /* Check one and only one context option was given */ 726 /* Check one and only one context option was given */
727 if(opt & 0x80000000UL) { 727 if(opt & BB_GETOPT_ERROR) {
728 bb_show_usage(); 728 bb_show_usage();
729 } 729 }
730#ifdef CONFIG_FEATURE_TAR_CREATE 730#ifdef CONFIG_FEATURE_TAR_CREATE