diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 18:17:42 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 18:17:42 +0000 |
| commit | 666da5e2c6edec979966d16771818b32dcfafe04 (patch) | |
| tree | c23e6a01fc51d8419c1562f70836148c705ac46a /libbb | |
| parent | 270c17c0e66ffe9fe0e47e891a583b5c6f8512ef (diff) | |
| download | busybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.tar.gz busybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.tar.bz2 busybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.zip | |
merge post-1.3.0 fixes
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/Kbuild | 3 | ||||
| -rw-r--r-- | libbb/bb_strtonum.c | 1 | ||||
| -rw-r--r-- | libbb/perror_nomsg.c | 9 | ||||
| -rw-r--r-- | libbb/perror_nomsg_and_die.c | 10 |
4 files changed, 15 insertions, 8 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild index c15615302..64e4531ce 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild | |||
| @@ -113,5 +113,6 @@ lib-$(CONFIG_EJECT) += find_mount_point.o | |||
| 113 | 113 | ||
| 114 | lib-$(CONFIG_AWK) += xregcomp.o | 114 | lib-$(CONFIG_AWK) += xregcomp.o |
| 115 | lib-$(CONFIG_SED) += xregcomp.o | 115 | lib-$(CONFIG_SED) += xregcomp.o |
| 116 | lib-$(CONFIG_LESS) += xregcomp.o | 116 | lib-$(CONFIG_GREP) += xregcomp.o |
| 117 | lib-$(CONFIG_MDEV) += xregcomp.o | ||
| 117 | lib-$(CONFIG_DEVFSD) += xregcomp.o | 118 | lib-$(CONFIG_DEVFSD) += xregcomp.o |
diff --git a/libbb/bb_strtonum.c b/libbb/bb_strtonum.c index 6fbd1f87d..50ef0ba26 100644 --- a/libbb/bb_strtonum.c +++ b/libbb/bb_strtonum.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | * errno = ERANGE if value had alphanumeric terminating char ("1234abcg"). | 17 | * errno = ERANGE if value had alphanumeric terminating char ("1234abcg"). |
| 18 | * errno = ERANGE if value is out of range, missing, etc. | 18 | * errno = ERANGE if value is out of range, missing, etc. |
| 19 | * errno = ERANGE if value had minus sign for strtouXX (even "-0" is not ok ) | 19 | * errno = ERANGE if value had minus sign for strtouXX (even "-0" is not ok ) |
| 20 | * return value is all-ones in this case. | ||
| 20 | */ | 21 | */ |
| 21 | 22 | ||
| 22 | static unsigned long long ret_ERANGE(void) | 23 | static unsigned long long ret_ERANGE(void) |
diff --git a/libbb/perror_nomsg.c b/libbb/perror_nomsg.c index 3aefd5301..8059f9fd8 100644 --- a/libbb/perror_nomsg.c +++ b/libbb/perror_nomsg.c | |||
| @@ -7,10 +7,13 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include "libbb.h" | 10 | /* gcc warns about a null format string, therefore we provide |
| 11 | * modified definition without "attribute (format)" | ||
| 12 | * instead of including libbb.h */ | ||
| 13 | //#include "libbb.h" | ||
| 14 | extern void bb_perror_msg(const char *s, ...); | ||
| 11 | 15 | ||
| 12 | void bb_perror_nomsg(void) | 16 | void bb_perror_nomsg(void) |
| 13 | { | 17 | { |
| 14 | /* Ignore the gcc warning about a null format string. */ | 18 | bb_perror_msg(0); |
| 15 | bb_perror_msg(NULL); | ||
| 16 | } | 19 | } |
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c index e5623c2a9..c416df67c 100644 --- a/libbb/perror_nomsg_and_die.c +++ b/libbb/perror_nomsg_and_die.c | |||
| @@ -7,11 +7,13 @@ | |||
| 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <stddef.h> | 10 | /* gcc warns about a null format string, therefore we provide |
| 11 | #include "libbb.h" | 11 | * modified definition without "attribute (format)" |
| 12 | * instead of including libbb.h */ | ||
| 13 | //#include "libbb.h" | ||
| 14 | extern void bb_perror_msg_and_die(const char *s, ...); | ||
| 12 | 15 | ||
| 13 | void bb_perror_nomsg_and_die(void) | 16 | void bb_perror_nomsg_and_die(void) |
| 14 | { | 17 | { |
| 15 | /* Ignore the gcc warning about a null format string. */ | 18 | bb_perror_msg_and_die(0); |
| 16 | bb_perror_msg_and_die(NULL); | ||
| 17 | } | 19 | } |
