dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0049-dp-use-void-to-express-empty-output-argument-list.patch

ced1f5
From ae4435d84bae06c592d7bed16ce7aa2b07823be9 Mon Sep 17 00:00:00 2001
ced1f5
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
ced1f5
Date: Thu, 2 Nov 2017 14:58:05 +0100
ced1f5
Subject: [PATCH 49/57] dp: use void * to express empty output argument list
ced1f5
MIME-Version: 1.0
ced1f5
Content-Type: text/plain; charset=UTF-8
ced1f5
Content-Transfer-Encoding: 8bit
ced1f5
ced1f5
Since we cannot use plain void type is function definition.
ced1f5
ced1f5
Related:
ced1f5
https://pagure.io/SSSD/sssd/issue/2840
ced1f5
ced1f5
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
ced1f5
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
ced1f5
(cherry picked from commit 6211a202301e6f61d46cdb2bf0be332a70c7fdea)
ced1f5
---
ced1f5
 src/providers/data_provider/dp_private.h       | 2 +-
ced1f5
 src/providers/data_provider/dp_request_reply.c | 2 +-
ced1f5
 2 files changed, 2 insertions(+), 2 deletions(-)
ced1f5
ced1f5
diff --git a/src/providers/data_provider/dp_private.h b/src/providers/data_provider/dp_private.h
ced1f5
index 2e71a373fdc8886fccb23bfb8283dc5bc341b1b0..028070f7f1866854c145a148e44c2cb108d2fc58 100644
ced1f5
--- a/src/providers/data_provider/dp_private.h
ced1f5
+++ b/src/providers/data_provider/dp_private.h
ced1f5
@@ -136,7 +136,7 @@ typedef void (*dp_req_reply_fn)(const char *req_name,
ced1f5
 
ced1f5
 void dp_req_reply_default(const char *req_name,
ced1f5
                           struct sbus_request *sbus_req,
ced1f5
-                          void *data);
ced1f5
+                          void **data);
ced1f5
 
ced1f5
 /* Data provider request table. */
ced1f5
 
ced1f5
diff --git a/src/providers/data_provider/dp_request_reply.c b/src/providers/data_provider/dp_request_reply.c
ced1f5
index 27d9654bad76a099b004846463f035bf2e6d1243..34440fda7f28f0026d63af1af9958dcea3c6aaec 100644
ced1f5
--- a/src/providers/data_provider/dp_request_reply.c
ced1f5
+++ b/src/providers/data_provider/dp_request_reply.c
ced1f5
@@ -31,7 +31,7 @@
ced1f5
 
ced1f5
 void dp_req_reply_default(const char *req_name,
ced1f5
                           struct sbus_request *sbus_req,
ced1f5
-                          void *data)
ced1f5
+                          void **data)
ced1f5
 {
ced1f5
     DP_REQ_DEBUG(SSSDBG_TRACE_FUNC, req_name, "Replying with empty message");
ced1f5
 
ced1f5
-- 
ced1f5
2.14.3
ced1f5