aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-07-12 21:31:16 +0000
committerRob Landley <rob@landley.net>2006-07-12 21:31:16 +0000
commit1f9145c5c381f5ec01c6d6b51bc1e19a18088ba2 (patch)
tree1aeca0400e9765268ce4e951aa56e094f91b7d67
parent58dda84ecc13d8e2bb3c6e2b73786ae22e2d9b10 (diff)
downloadbusybox-w32-1f9145c5c381f5ec01c6d6b51bc1e19a18088ba2.tar.gz
busybox-w32-1f9145c5c381f5ec01c6d6b51bc1e19a18088ba2.tar.bz2
busybox-w32-1f9145c5c381f5ec01c6d6b51bc1e19a18088ba2.zip
More minor tweaks.
-rw-r--r--Makefile1
-rw-r--r--libbb/xgetlarg.c10
-rw-r--r--libbb/xgetularg.c2
-rw-r--r--miscutils/Config.in7
4 files changed, 6 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 3d3a24be3..a705bac32 100644
--- a/Makefile
+++ b/Makefile
@@ -483,6 +483,7 @@ distclean: clean
483 rm -f scripts/bb_mkdep scripts/usage 483 rm -f scripts/bb_mkdep scripts/usage
484 rm -r -f include/config include/config.h $(DEP_INCLUDES) 484 rm -r -f include/config include/config.h $(DEP_INCLUDES)
485 find . -name .depend'*' -print0 | xargs -0 rm -f 485 find . -name .depend'*' -print0 | xargs -0 rm -f
486 find . -name '*.rej' -print0 | xargs -0 rm -f
486 rm -f .hdepend 487 rm -f .hdepend
487 rm -f .config .config.old .config.cmd 488 rm -f .config .config.old .config.cmd
488 489
diff --git a/libbb/xgetlarg.c b/libbb/xgetlarg.c
index cadb83e08..5b1e7b9d5 100644
--- a/libbb/xgetlarg.c
+++ b/libbb/xgetlarg.c
@@ -20,14 +20,8 @@ long bb_xgetlarg(const char *arg, int base, long lower, long upper)
20 char *endptr; 20 char *endptr;
21 int errno_save = errno; 21 int errno_save = errno;
22 22
23 assert(arg!=NULL); 23 if (ENABLE_DEBUG && arg==NULL)
24 24 bb_error_msg_and_die("Null in xgetlarg.");
25 /* Don't allow leading whitespace.
26 * Wrap isspace in () to make sure we call the
27 * function rather than the macro. */
28 if ((isspace)(*arg)) {
29 bb_show_usage();
30 }
31 25
32 errno = 0; 26 errno = 0;
33 result = strtol(arg, &endptr, base); 27 result = strtol(arg, &endptr, base);
diff --git a/libbb/xgetularg.c b/libbb/xgetularg.c
index 6110746a5..21b0d12f7 100644
--- a/libbb/xgetularg.c
+++ b/libbb/xgetularg.c
@@ -89,9 +89,7 @@ long bb_xgetlarg_bnd_sfx(const char *arg, int base,
89 89
90 if ((*p == '-') && (p[1] != '+')) { 90 if ((*p == '-') && (p[1] != '+')) {
91 ++p; 91 ++p;
92#if LONG_MAX == (-(LONG_MIN + 1))
93 ++u; /* two's complement */ 92 ++u; /* two's complement */
94#endif
95 } 93 }
96 94
97 r = bb_xgetularg_bnd_sfx(p, base, 0, u, suffixes); 95 r = bb_xgetularg_bnd_sfx(p, base, 0, u, suffixes);
diff --git a/miscutils/Config.in b/miscutils/Config.in
index 51faae987..4296b54ea 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -67,7 +67,7 @@ config CONFIG_DEVFSD
67 bool "devfsd (obsolete)" 67 bool "devfsd (obsolete)"
68 default n 68 default n
69 help 69 help
70 This is deprecated, and will be going away in a future release. 70 This is deprecated, and will be removed at the end of 2008.
71 71
72 Provides compatibility with old device names on a devfs systems. 72 Provides compatibility with old device names on a devfs systems.
73 You should set it to true if you have devfs enabled. 73 You should set it to true if you have devfs enabled.
@@ -105,13 +105,12 @@ config CONFIG_FEATURE_DEVFS
105 bool " Use devfs names for all devices (obsolete)" 105 bool " Use devfs names for all devices (obsolete)"
106 default n 106 default n
107 help 107 help
108 This is obsolete and will be going away at the end of 2008..
109
108 This tells busybox to look for names like /dev/loop/0 instead of 110 This tells busybox to look for names like /dev/loop/0 instead of
109 /dev/loop0. If your /dev directory has normal names instead of 111 /dev/loop0. If your /dev directory has normal names instead of
110 devfs names, you don't want this. 112 devfs names, you don't want this.
111 113
112 This is obsolete and will be going away someday. Consider it
113 deprecated.
114
115config CONFIG_EJECT 114config CONFIG_EJECT
116 bool "eject" 115 bool "eject"
117 default n 116 default n