]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: rename stdout_stream_destroy() → stdout_stream_terminate()
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Mar 2025 20:44:30 +0000 (16:44 -0400)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Apr 2025 15:37:58 +0000 (17:37 +0200)
src/journal/fuzz-journald-stream.c
src/journal/journald-stream.c
src/journal/journald-stream.h

index 3ad9e20222fce5c7795ccdb69a78886b496c4b97..f9c6bfba10f7ff421207aa55899fe75db5ba44db 100644 (file)
@@ -32,7 +32,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
                 sd_event_run(s->event, UINT64_MAX);
 
         if (s->n_stdout_streams > 0)
-                stdout_stream_destroy(stream);
+                stdout_stream_terminate(stream);
 
         return 0;
 }
index 2ada374b7393b285d955c156b8326e1967f67424..e45765df0c91153354336903e980daa0fdf1eb1b 100644 (file)
@@ -137,7 +137,7 @@ StdoutStream* stdout_stream_free(StdoutStream *s) {
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(StdoutStream*, stdout_stream_free);
 
-void stdout_stream_destroy(StdoutStream *s) {
+void stdout_stream_terminate(StdoutStream *s) {
         if (!s)
                 return;
 
@@ -649,7 +649,7 @@ static int stdout_stream_process(sd_event_source *es, int fd, uint32_t revents,
         return 1;
 
 terminate:
-        stdout_stream_destroy(s);
+        stdout_stream_terminate(s);
         return 0;
 }
 
index 7b756c05eccbc198e10618c348782fe3544064ff..71d3394ed9a5f54200b9cfffcd5ed7b16415bf7c 100644 (file)
@@ -11,5 +11,5 @@ int server_restore_streams(Server *s, FDSet *fds);
 
 StdoutStream* stdout_stream_free(StdoutStream *s);
 int stdout_stream_install(Server *s, int fd, StdoutStream **ret);
-void stdout_stream_destroy(StdoutStream *s);
+void stdout_stream_terminate(StdoutStream *s);
 void stdout_stream_send_notify(StdoutStream *s);