aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-08 12:49:22 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-08 12:49:22 +0000
commit87d25a2b8535dc627a02eb539fa3946be2a24647 (patch)
treefc4d14a910593d1235318bb36abe5e9f72d2039e /sysklogd/logger.c
parent81177b14907e73f11560f69e0b4ec34371f1a7d5 (diff)
downloadbusybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.tar.gz
busybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.tar.bz2
busybox-w32-87d25a2b8535dc627a02eb539fa3946be2a24647.zip
attempt to regularize atoi mess.
git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c9
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