daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From eb711891df269ea784e3c9adc3483d9ec86c25e9 Mon Sep 17 00:00:00 2001
ff6046
From: Evgeny Vereshchagin <evvers@ya.ru>
ff6046
Date: Mon, 3 Sep 2018 07:03:10 +0000
ff6046
Subject: [PATCH] journald: make server_process_native_message compatible with
ff6046
 fuzz_journald_processing_function
ff6046
ff6046
(cherry picked from commit 21acb27b71f6284a57e4e9f3ac5f0d38721ef4eb)
ff6046
ff6046
Resolves: #1696224
ff6046
---
ff6046
 src/journal/journald-native.c | 2 +-
ff6046
 src/journal/journald-native.h | 2 +-
ff6046
 2 files changed, 2 insertions(+), 2 deletions(-)
ff6046
ff6046
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c
ff6046
index da62448ca6..466b6f7213 100644
ff6046
--- a/src/journal/journald-native.c
ff6046
+++ b/src/journal/journald-native.c
ff6046
@@ -293,7 +293,7 @@ finish:
ff6046
 
ff6046
 void server_process_native_message(
ff6046
                 Server *s,
ff6046
-                const void *buffer, size_t buffer_size,
ff6046
+                const char *buffer, size_t buffer_size,
ff6046
                 const struct ucred *ucred,
ff6046
                 const struct timeval *tv,
ff6046
                 const char *label, size_t label_len) {
ff6046
diff --git a/src/journal/journald-native.h b/src/journal/journald-native.h
ff6046
index 7211d4fab4..2a33ef74c5 100644
ff6046
--- a/src/journal/journald-native.h
ff6046
+++ b/src/journal/journald-native.h
ff6046
@@ -5,7 +5,7 @@
ff6046
 
ff6046
 void server_process_native_message(
ff6046
                 Server *s,
ff6046
-                const void *buffer,
ff6046
+                const char *buffer,
ff6046
                 size_t buffer_size,
ff6046
                 const struct ucred *ucred,
ff6046
                 const struct timeval *tv,