projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git]
/
sysklogd
/
klogd.c
diff --git
a/sysklogd/klogd.c
b/sysklogd/klogd.c
index f59a155b40e0c919c0a3403a267eea9d532dd07d..432ded1530be3054bf1f3ee9130d025a803833ee 100644
(file)
--- a/
sysklogd/klogd.c
+++ b/
sysklogd/klogd.c
@@
-240,11
+240,8
@@
int klogd_main(int argc UNUSED_PARAM, char **argv)
priority = LOG_INFO;
if (*start == '<') {
start++;
- if (*start) {
- /* kernel never generates multi-digit prios */
- priority = (*start - '0');
- start++;
- }
+ if (*start)
+ priority = strtoul(start, &start, 10);
if (*start == '>')
start++;
}