journald: split /dev/kmsg related stuff into its own .c file

This commit is contained in:
Lennart Poettering
2012-08-22 03:09:44 +02:00
parent 671e021c92
commit ef63833d53
7 changed files with 525 additions and 444 deletions
+3 -3
View File
@@ -4409,7 +4409,7 @@ bool plymouth_running(void) {
return access("/run/plymouth/pid", F_OK) >= 0;
}
void parse_syslog_priority(char **p, int *priority) {
void syslog_parse_priority(char **p, int *priority) {
int a = 0, b = 0, c = 0;
int k;
@@ -4445,7 +4445,7 @@ void parse_syslog_priority(char **p, int *priority) {
*p += k;
}
void skip_syslog_pid(char **buf) {
void syslog_skip_pid(char **buf) {
char *p;
assert(buf);
@@ -4467,7 +4467,7 @@ void skip_syslog_pid(char **buf) {
*buf = p;
}
void skip_syslog_date(char **buf) {
void syslog_skip_date(char **buf) {
enum {
LETTER,
SPACE,
+3 -3
View File
@@ -419,9 +419,9 @@ bool nulstr_contains(const char*nulstr, const char *needle);
bool plymouth_running(void);
void parse_syslog_priority(char **p, int *priority);
void skip_syslog_pid(char **buf);
void skip_syslog_date(char **buf);
void syslog_parse_priority(char **p, int *priority);
void syslog_skip_pid(char **buf);
void syslog_skip_date(char **buf);
bool hostname_is_valid(const char *s);
char* hostname_cleanup(char *s);