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