← Commit list

c16ae469e

Denys Vlasenko
Denys Vlasenko
2018-07-31
SUCCESS Duration: 146s

Subject

klogd: code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/klogd.c+7 -4
@@ -275,10 +275,13 @@ int klogd_main(int argc UNUSED_PARAM, char **argv)
priority = LOG_INFO;
if (*start == '<') {
start++;
- if (*start)
- priority = strtoul(start, &start, 10);
- if (*start == '>')
- start++;
+ if (*start) {
+ char *end;
+ priority = strtoul(start, &end, 10);
+ if (*end == '>')
+ end++;
+ start = end;
+ }
}
/* Log (only non-empty lines) */
if (*start)