journald: split /dev/kmsg related stuff into its own .c file
This commit is contained in:
+3
-3
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user