diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-26 10:47:58 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-28 19:28:22 +0200 |
commit | 46c5deedec570bb5f99702a933ba99d76f9f09cb (patch) | |
tree | 689c08fbd8f885d0312c03bc58b936629139d640 /src/responder | |
parent | 6fab6db37339833a1534221f9f8b86c1fac427f0 (diff) | |
download | sssd-46c5deedec570bb5f99702a933ba99d76f9f09cb.tar.gz sssd-46c5deedec570bb5f99702a933ba99d76f9f09cb.tar.bz2 sssd-46c5deedec570bb5f99702a933ba99d76f9f09cb.zip |
DP: Use the correct type for DBus boolean
https://fedorahosted.org/sssd/ticket/2057
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/common/responder_get_domains.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/responder/common/responder_get_domains.c b/src/responder/common/responder_get_domains.c index 592cd8dc..a976d272 100644 --- a/src/responder/common/responder_get_domains.c +++ b/src/responder/common/responder_get_domains.c @@ -29,7 +29,10 @@ static DBusMessage *sss_dp_get_domains_msg(void *pvt); struct sss_dp_domains_info { struct sss_domain_info *dom; const char *hint; - bool force; + /* The DBus API expects its own Boolean type when formatting argument + * with DBUS_TYPE_BOOLEAN + */ + dbus_bool_t force; }; static struct tevent_req * @@ -55,7 +58,7 @@ get_subdomains_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, goto fail; } info->hint = hint; - info->force = force; + info->force = force ? TRUE : FALSE; info->dom = dom; key = talloc_asprintf(state, "domains@%s", dom->name); |