naccyde / rpms / systemd

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