diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2018-11-20 01:20:32 +0100 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2018-11-20 03:03:32 +0100 |
commit | 9541f5ff5c637bb1b3e3c69706cb73e68ff06813 (patch) | |
tree | e8facfc957fc73811a663af002c86fbfbb8f21b6 /src/journal | |
parent | Merge pull request #10811 from keszybz/define-main-through-macro (diff) | |
download | systemd-9541f5ff5c637bb1b3e3c69706cb73e68ff06813.tar.xz systemd-9541f5ff5c637bb1b3e3c69706cb73e68ff06813.zip |
tests: add a fuzzer for journald streams
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-stream.c | 4 | ||||
-rw-r--r-- | src/journal/journald-stream.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 81aa7bd99f..e4df814cc7 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -125,7 +125,7 @@ void stdout_stream_free(StdoutStream *s) { DEFINE_TRIVIAL_CLEANUP_FUNC(StdoutStream*, stdout_stream_free); -static void stdout_stream_destroy(StdoutStream *s) { +void stdout_stream_destroy(StdoutStream *s) { if (!s) return; @@ -534,7 +534,7 @@ terminate: return 0; } -static int stdout_stream_install(Server *s, int fd, StdoutStream **ret) { +int stdout_stream_install(Server *s, int fd, StdoutStream **ret) { _cleanup_(stdout_stream_freep) StdoutStream *stream = NULL; sd_id128_t id; int r; diff --git a/src/journal/journald-stream.h b/src/journal/journald-stream.h index bc5622ab3b..487376e763 100644 --- a/src/journal/journald-stream.h +++ b/src/journal/journald-stream.h @@ -10,4 +10,6 @@ int server_open_stdout_socket(Server *s); int server_restore_streams(Server *s, FDSet *fds); void stdout_stream_free(StdoutStream *s); +int stdout_stream_install(Server *s, int fd, StdoutStream **ret); +void stdout_stream_destroy(StdoutStream *s); void stdout_stream_send_notify(StdoutStream *s); |