diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /sysklogd/logger.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2 busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip |
attempt to regularize atoi mess.
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r-- | sysklogd/logger.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 15a4bfb82..8901bd79f 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -48,14 +48,14 @@ static int decode(char *name, CODE * codetab) | |||
48 | CODE *c; | 48 | CODE *c; |
49 | 49 | ||
50 | if (isdigit(*name)) | 50 | if (isdigit(*name)) |
51 | return (atoi(name)); | 51 | return atoi(name); |
52 | for (c = codetab; c->c_name; c++) { | 52 | for (c = codetab; c->c_name; c++) { |
53 | if (!strcasecmp(name, c->c_name)) { | 53 | if (!strcasecmp(name, c->c_name)) { |
54 | return (c->c_val); | 54 | return c->c_val; |
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | return (-1); | 58 | return -1; |
59 | } | 59 | } |
60 | 60 | ||
61 | /* Decode a symbolic name to a numeric value | 61 | /* Decode a symbolic name to a numeric value |
@@ -177,6 +177,3 @@ int logger_main(int argc, char **argv) | |||
177 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 177 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
178 | * SUCH DAMAGE. | 178 | * SUCH DAMAGE. |
179 | */ | 179 | */ |
180 | |||
181 | |||
182 | |||